+ Reply to Thread
Results 1 to 5 of 5

Click SAVE to save new file - not working correctly

  1. #1
    Registered User
    Join Date
    09-20-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    17

    Click SAVE to save new file - not working correctly

    Hi all,
    What I really wanted to do is when SAVE is clicked, save to a new file with file name derived from cell A1 (not to the current workbook, which is my template). I have come up with the code below. But, once SAVE is clicked, it would save to the current workbook (not good), generate a new file with file name derived from cell A1 (Good), and also generate another file Book1 (not good). Please help.
    Please Login or Register  to view this content.
    Last edited by Leith Ross; 10-03-2011 at 12:53 PM. Reason: Replaced Quote Tags with Code Tags

  2. #2
    Valued Forum Contributor
    Join Date
    06-19-2010
    Location
    Holywell, N Wales, UK
    MS-Off Ver
    Excel 2013
    Posts
    470

    Re: Click SAVE to save new file - not working correctly

    Hi vettenfun
    Try putting your code in a normal module and calling it from your SAVE button(?)
    probably add the file exension too?

  3. #3
    Registered User
    Join Date
    09-20-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Click SAVE to save new file - not working correctly

    No luck so far.

    Quote Originally Posted by barryleajo View Post
    Hi vettenfun
    Try putting your code in a normal module and calling it from your SAVE button(?)
    probably add the file exension too?

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Click SAVE to save new file - not working correctly

    Is it ok to work with a "Save" button created using VB tools in your excel file instead of using the Excel Save button/

  5. #5
    Registered User
    Join Date
    09-20-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Click SAVE to save new file - not working correctly

    I prefer to use the Excel "SAVE" button instead of creating another SAVE button. Could you find what's wrong in the code above? It works, but not exactly what I'm looking for. As far as saving to the template, I can set "Read-Only" to take care this problem. However, another workbook (Book1) generated is the most serious problem for me. Can we write a command to disallow Book1 to come up? Thanks


    Quote Originally Posted by arlu1201 View Post
    Is it ok to work with a "Save" button created using VB tools in your excel file instead of using the Excel Save button/

+ 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