+ Reply to Thread
Results 1 to 2 of 2

Runtime error 1004/ Save As method help

  1. #1

    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. #2

    Re: 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

    [email protected] 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1