+ Reply to Thread
Results 1 to 3 of 3

Run time error when using activeworkbook.saveas

  1. #1
    Forum Contributor
    Join Date
    05-19-2010
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2003
    Posts
    107

    Question Run time error when using activeworkbook.saveas

    Mornign all,
    My company is in the process of upgrading to 2007 so I am ensuring all macros run in 2007. So far most of them have. Howeer I am currently getting a runtime error when it get's to the saveas function.

    Run-time error '1004':
    Method 'SaveAs' of Object'_Workbook' failed

    I have posted the code below. When I debug it it highlights the saveas feature.

    Please Login or Register  to view this content.
    Last edited by CJPHX; 07-06-2010 at 11:11 AM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,998

    Re: Run time error when using activeworkbook.saveas

    Use a different file format (I doubt you'll find that as an option if you try to save the file manually)
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    05-19-2010
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2003
    Posts
    107

    Re: Run time error when using activeworkbook.saveas

    Thank you that worked.

+ 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