Hi,
I'm trying to save a file thru VBA in Excel but I get Runtime Error 1004. The system tells me that the file already exists which it doesn't. If I want to replace it. I would like to get rid of this and just save the file regardless if it already exists. Is there a way to do this. Here's the line of code where I save the file:
wb.SaveAs "P:\PPD_MDI\MDI Global Reports\PB Dealer Reports\" & "MDI Dealer Report " & Worksheets(1).Range("A1").Value
Thank you!
I'm trying to save a file thru VBA in Excel but I get Runtime Error 1004. The system tells me that the file already exists which it doesn't. If I want to replace it. I would like to get rid of this and just save the file regardless if it already exists. Is there a way to do this. Here's the line of code where I save the file:
wb.SaveAs "P:\PPD_MDI\MDI Global Reports\PB Dealer Reports\" & "MDI Dealer Report " & Worksheets(1).Range("A1").Value
Thank you!