+ Reply to Thread
Results 1 to 3 of 3

Save As with Macro & Variable File Name

  1. #1
    Registered User
    Join Date
    09-18-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    9

    Save As with Macro & Variable File Name

    I am trying to create the code to save a template down as a macro enabled workbook with a file name based on input from a userform. Here's what I have, and I keep getting an error message about the Workbook class. I've Googled a million times and some of what I have below is what I copied from recording a macro and still get an error - I am very stumped. Please help!

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor gsnidow's Avatar
    Join Date
    07-22-2010
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2007
    Posts
    150

    Re: Save As with Macro & Variable File Name

    Are you sure 'jobno' has a value? What do you see if you put MsgBox(jobno) directly after the jobno= line?
    Just a guy trying to make work stuff easier.

  3. #3
    Registered User
    Join Date
    09-18-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Save As with Macro & Variable File Name

    that was it... i was staring at the damn thing for so long i didn't realize i hadn't filled it out completely. thanks.

+ 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. Replies: 1
    Last Post: 09-05-2013, 02:39 PM
  2. Save As with variable file name
    By kinseld5 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2013, 12:45 PM
  3. Replies: 0
    Last Post: 01-27-2013, 12:13 PM
  4. Get Putty output to variable or save in log file using excel macro
    By shkehar.mgm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-12-2012, 06:38 AM
  5. How to Save As Variable File Name
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-25-2005, 07:36 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