I found this Excel code on the internet. It works fine. However there is a problem with the code. When I run the code a second time, I get a message that says I cannot save this workbook with the same name. Is there a code that I can use that can override the Workbook named Marios sales...
I have a problem that I can't figure out.
I have two sub's that needs to run under one button, and the thing is that it have to create sperate type of file to export (.csv and .txt)
normally they work, but when the CSV file needs that save then it will not?
Can someone help me on this...
With AutoSave ON:
I must close the active workbook after saving as .xlsx
Then, copy the active workbook again,
Delete the unnecessary columns and
SaveAs the .cvs
Otherwise, AutoSave performs the deletion and Autofit on the original copied worksheet.
This code works, but seems kind of...
Hi I have the folloowing script
Private Sub cmdXlsCsv_Click()
Dim xls As Excel.Application
Dim tmp As String
Dim oWB As Excel.Workbook
Set xls = New Excel.Application
tmp = "C:\Users\cjack\Desktop\Copy of Book5.xlsx"
Set oWB = xls.Workbooks.Open(tmp)...