Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Runtime error 1004/ Save As method help
Thank you so much for your help so far. However, I have another
question. In my script I would like to save my workbooks to a mapped drive. I filled in the blanks for the save code and tried it out. It goes up to the third entry saves it and by the fourth I get a error message. Runtime error 1004 - MS Office Excel cannot access the file "\\blah\blah\blah" There are several possible reasons. It gives four options but the contiue button is grayed out. Can you help? Dawn Here is the sample code: bk.SaveAs Filename:="\\syslea222\busserve\Credit Logs\Archer Project\Master Customer List\" & Worksheets("PD").Range("F6").Value & ".xls" bk.Close SaveChanges:=False ThisWorkbook.Activate |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Runtime error 1004/ Save As method help
Hi,
Make sure your Range("F6").value doesn't include these : *; [],\ etc ... Check your file name tosave first, halim menuliskan: Thank you so much for your help so far. However, I have another question. In my script I would like to save my workbooks to a mapped drive. I filled in the blanks for the save code and tried it out. It goes up to the third entry saves it and by the fourth I get a error message. Runtime error 1004 - MS Office Excel cannot access the file "\\blah\blah\blah" There are several possible reasons. It gives four options but the contiue button is grayed out. Can you help? Dawn Here is the sample code: bk.SaveAs Filename:="\\syslea222\busserve\Credit Logs\Archer Project\Master Customer List\" & Worksheets("PD").Range("F6").Value & ".xls" bk.Close SaveChanges:=False ThisWorkbook.Activate |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Method 'MacroOptions' of object'_Application' failed Runtime Error 1004 | Excel Discussion (Misc queries) | |||
Runtime 1004 error -- insert method of range class failed. | Excel Discussion (Misc queries) | |||
runtime error 1004 method range of object '_global failed | Excel Discussion (Misc queries) | |||
Runtime error 1004 with method OpenText - but only on one computer | Excel Programming | |||
Runtime Error 1004 - Method Range of '_Global failed' | Excel Programming |