YeshyTiger
New Member
- Joined
- Oct 21, 2008
- Messages
- 23
Hello,
I'm trying to save multiple workbooks as both .xls and .csv I recieve .xls files, make consistent changes, then save the updated workbook in both formats in seperate folder. How can I do this in VBA? I want to keep the same name as what I opened the file as
My current isn't cutting it. Also, there are times when I get 2 workbooks of the same name and I just want to overwrite what's already in the folder.
Here's my current, it's a section out of my much larger macro.
I'm trying to save multiple workbooks as both .xls and .csv I recieve .xls files, make consistent changes, then save the updated workbook in both formats in seperate folder. How can I do this in VBA? I want to keep the same name as what I opened the file as
My current isn't cutting it. Also, there are times when I get 2 workbooks of the same name and I just want to overwrite what's already in the folder.
Here's my current, it's a section out of my much larger macro.
Code:
Application.DisplayAlerts = False
ChDir "C:\Documents and Settings\jgeiger\Desktop\PMP Converted Files"
ActiveSheet.SaveAs Filename:=ActiveWorkbook.Name, FileFormat:=xlNormal
ChDir "C:\Documents and Settings\jgeiger\Desktop\CSV Ready for Import"
ActiveSheet.SaveAs Filename:=ActiveWorkbook.Name, FileFormat:=xlCSV