+ Reply to Thread
Results 1 to 6 of 6

Save as fail with excel 2010 and 2013

  1. #1
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Save as fail with excel 2010 and 2013

    Hello,

    I am having problem to run the below macro with excel 2010 and 2013. It does work under Excel 2007 though. Can you help me to understand what is wrong with the macro?


    Run-time error ´1004´:

    Microsoft excel cannot access the file 'C:\C1C24100'. There are several possible reasons:

    º The file name or path does not exist.
    º The file is being used by another program.
    º The workbook you are trying to save has the same name as currently open workook.

    HTML Code: 
    thanks,
    Graig

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644
    Which OS are you using?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Save as fail with excel 2010 and 2013

    I am running windows 7

  4. #4
    Forum Contributor satputenandkumar0's Avatar
    Join Date
    11-08-2012
    Location
    Pune, India
    MS-Off Ver
    Office xp & Office 2007
    Posts
    398

    Re: Save as fail with excel 2010 and 2013

    try this

    Please Login or Register  to view this content.
    Regards,
    Nandkumar S.
    ---------------------------------------------------------------
    Don't forget to Click on * if you like my solution.

  5. #5
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Save as fail with excel 2010 and 2013

    same error. I changed the path : Const spath = "c:\" to Const spath = "c:\temp" as my C:\ drive is protected

  6. #6
    Forum Contributor satputenandkumar0's Avatar
    Join Date
    11-08-2012
    Location
    Pune, India
    MS-Off Ver
    Office xp & Office 2007
    Posts
    398

    Re: Save as fail with excel 2010 and 2013

    try to changing drive as d:\
    or check the range"EVNAME"

    code is working for me.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Windows 8, Excel 2013 and Project 2010 - Reference Error in Macro
    By microsoftexcel007 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-01-2013, 06:23 PM
  2. [SOLVED] Creating scattering chart in excel 2007/2010/2013
    By elad.edri in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-22-2013, 10:02 AM
  3. Replies: 3
    Last Post: 03-29-2013, 12:35 PM
  4. excel 2010 vba to save access 2010 database and close it
    By dearnemo385 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-17-2012, 11:56 AM
  5. External References Fail to Update in Excel 2010
    By dmking99 in forum Excel General
    Replies: 4
    Last Post: 05-28-2011, 06:11 PM

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