Results 1 to 3 of 3

my macro changes the date format why?

Threaded 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.

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