paul.raeburn
PR
- Local time
- Today, 11:20
- Joined
- Apr 29, 2001
- Messages
- 47
I have some code that does the following:
kills a spreadsheet if it exists,
opens a template,
save as a worksheet,
transfer data to it,
opens the spreadseet,
runs a macro
then I save it...
I am using the following to save the spreadsheet:
xlBook.SaveAs DirPath & xlsfname
xlBook.Close
I have two problems, one is that when I use xlBook.Save, I get a complie
error: wrong number of arguments or invalid property assignment...
the second is with SaveAs I get a excel dialog box stating "A file name
already exists etc...
how can I solve this
kills a spreadsheet if it exists,
opens a template,
save as a worksheet,
transfer data to it,
opens the spreadseet,
runs a macro
then I save it...
I am using the following to save the spreadsheet:
xlBook.SaveAs DirPath & xlsfname
xlBook.Close
I have two problems, one is that when I use xlBook.Save, I get a complie
error: wrong number of arguments or invalid property assignment...
the second is with SaveAs I get a excel dialog box stating "A file name
already exists etc...
how can I solve this