+ Reply to Thread
Results 1 to 3 of 3

Trying to get my command button to SAVEAS

  1. #1
    Forum Contributor
    Join Date
    03-17-2013
    Location
    London, England
    MS-Off Ver
    Microsoft 365 MSO (Version 2202 Build 16.0.14931.20648) 32-bit
    Posts
    155

    Trying to get my command button to SAVEAS

    Hi all,

    I have attached a test sheet with a simple userform that has a button, Is there a way to get this button to ask where you want to save the file, I assume its something like ThisWorkbook.SaveAs but can't get it to work, It just wants to save that file.

    Ultimately what i am trying to do is open this document blank, Fill it with data, then SAVEAS another file, Leaving this initial document blank,So next time it is opened i can file it with different data and save that.

    For instance, I open this, Fill it with my Shopping List for Tuesday (Using ComboBoxe's/Textboxes probably), Then at the end i want to be able to Click the SAVE AS button and choose to name this file TUESDAY (or whatever i like, in whatever location i choose), Then when i close the original it clears for the next time.

    Any help appreciated

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Trying to get my command button to SAVEAS

    Why don't you just use an xltm file?

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Trying to get my command button to SAVEAS

    Try using this code for the command button:

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

+ 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: 2
    Last Post: 02-02-2016, 10:27 PM
  2. Insert Command Button that will Activate Command Button on a Different Sheet
    By realvirtuality1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-06-2016, 02:11 PM
  3. VBA code to create command button. Print all sheets then delete command button.
    By Declamatory in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-15-2015, 05:18 PM
  4. command SaveAs
    By jeskit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2011, 11:49 AM
  5. SaveAS vbYesNo command button
    By iguss in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2008, 04:54 PM
  6. Replies: 1
    Last Post: 09-17-2007, 09:57 PM
  7. [SOLVED] command button:Can i use a command button to open diffrrent sheets
    By Hellboy in forum Excel General
    Replies: 0
    Last Post: 11-03-2005, 11:00 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