+ Reply to Thread
Results 1 to 2 of 2

Save (macro) button not working

  1. #1
    Registered User
    Join Date
    03-15-2013
    Location
    South West, England
    MS-Off Ver
    Excel 2010
    Posts
    27

    Save (macro) button not working

    I have a graphic I use as a clickable tab to save my worksheet based on a combination of several cells. It worked perfectly for a day (20+ tests) and now it just throws up an error. Nothing has changed, other than the day.

    I have no idea why...

    The code I'm using is:

    Please Login or Register  to view this content.
    The line the debugger says is at fault is ActiveWorkbook.SaveAs Filename:=ThisFile but it WAS working!

    If it helps the cell it takes data from takes data from a cell with this formula in

    Please Login or Register  to view this content.
    If anyone can suss this I'd also like to be able to save it to a specific folder too!

    Thanks.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Save (macro) button not working

    Whenever you ask for diagnosis of an error it is essential to include the text of the error. It also helps to attach your file.

    What is displayed in J503? The code looks OK to me. Based on the fact that it used to work and then stopped, I am guessing that value of J503 is an illegal file name.

    Saving to a specific folder is easy. What folder do you want to save it to? Here is an example:
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. [SOLVED] Macro Button on Worksheet Not working
    By Cyd44 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-29-2012, 01:08 PM
  2. Save As Macro - Not Working...
    By Thrawler in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2012, 09:37 AM
  3. Save as Macro working for one computer but not the other?
    By Infinity in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-29-2006, 05:30 AM
  4. Save As Button Macro
    By Guest04 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-23-2005, 02:48 AM

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