D
dipsy
Hi! I would like to close a file without saving changes
to the file.
The file to close: "Cost.dat"
Filename is assigned to a variable -
cost = "C:\My Documents\Cost.dat"
I am using the code:
Workbooks(cost).Close savechanges:=0
I get error message:
Subscript out of range
Thanks in advance!
to the file.
The file to close: "Cost.dat"
Filename is assigned to a variable -
cost = "C:\My Documents\Cost.dat"
I am using the code:
Workbooks(cost).Close savechanges:=0
I get error message:
Subscript out of range
Thanks in advance!