Hey all,
I have a VBA code to open a CSV file:
The CSV which the workbook is designed to open is being downloaded from a gov't website and because the first column is "ID" it arrives an error msgbox:
Is there a variable or a code I can add into my workbooks.open to just click OKAY when the above msgbox opens and my coworkers (who i'm making this for) can maintain their sense of calm?
Thanks,
HK
I have a VBA code to open a CSV file:
Code:
FileToOpen = Application.GetOpenFilename _(Title:="Please choose the Permit List to import", _
FileFilter:="CSV files only (*.csv),")
If FileToOpen = False Then
MsgBox "No file specified."
Exit Sub
Else
Workbooks.Open Filename:=FileToOpen
The CSV which the workbook is designed to open is being downloaded from a gov't website and because the first column is "ID" it arrives an error msgbox:
Code:
vba file is a SYLK file, but cannot load it. Either the file has errors or it is not a SYLK file format. Click OK to try to open the file in a different format.
Is there a variable or a code I can add into my workbooks.open to just click OKAY when the above msgbox opens and my coworkers (who i'm making this for) can maintain their sense of calm?
Thanks,
HK