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...
Hi There,
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)...
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.