wilpitz
asked on
Excel Macro export populated records to CSV file with time and date as name
I need a macro that will export all data from A3 to G3 all the way down to the last record with data and export this to C:\temp. The name of file needs to be the date in yyyymmddhmmss
Any help would be GREAT!
Any help would be GREAT!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Is there a way to close the new sheet once it is saved automaically. I tried a couple of ways and I could not get it to work.
The rest of the code works great!! Will award points for above.
The rest of the code works great!! Will award points for above.
Just add:
ActiveWorkbook.Close
ActiveWorkbook.Close
ASKER
Used ActiveWorkbook.Close Savechanges:=False at the end to close the sheet, works GREAT!
If not then you can just copy the sheet and save as csv, rather than creating a new sheet and copying and pasting data to it. Copying some of Flyster's suggestion:
Open in new window
Thanks
Rob