+ Reply to Thread
Results 1 to 3 of 3

my macro changes the date format why?

Hybrid View

  1. #1
    Registered User
    Join Date
    06-19-2007
    Posts
    47

    my macro changes the date format why?

    i recorded a macro to copy data form one workbook to another when i do this procedure by hand there is no problem. but when i used the recorded macro it changes the format of the date from "general" to "date" but the date format it chooses is the wrong (U.S)

    I dont need it to do anything to the data when it is copied but it does!!! why ??


    please help its really irritating!


    Thanks for all the help


    the code of woe!

    
    Windows("weekly report template.xls").Activate
        Sheets("export").Select
    Sheets.Add.Name = "export"
    Workbooks.Open Filename:=ThisWorkbook.Path & Application.PathSeparator & "export.csv"
        Cells.Select
        Selection.Copy
    
    Windows("weekly report template.xls").Activate
        Sheets("export").Select
    
    Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
    xlNone, SkipBlanks:=False, Transpose:=False
    
    
    Windows("export.csv").Activate
    Application.CutCopyMode = False
    ActiveWindow.Close
    
    Sheets("functions").Select
    End Sub
    Last edited by meacho; 07-31-2007 at 10:04 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Can you read the Forum Rules & start using Code tags if you want help. Thanks
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    06-19-2007
    Posts
    47
    sorry

    Matt

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1