+ Reply to Thread
Results 1 to 5 of 5

how to save a sheet using buttons in excel

  1. #1
    Registered User
    Join Date
    01-25-2013
    Location
    saudi arabia
    MS-Off Ver
    Excel 2007
    Posts
    17

    how to save a sheet using buttons in excel

    how to save an excel sheet using button

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: how to save a sheet using buttons in excel

    Use the macro recorder. Turn it on by clicking on the icon next to the READY icon at the bottom left of the excel window. This will record every action you do. When you have saved the file, "stop" the recorder.

    Then create a shape where you want the button to be, right-click on that shape and assign the macro to it
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-25-2013
    Location
    saudi arabia
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: how to save a sheet using buttons in excel

    is there any code to save the sheet1 only. i want a save button to save the sheet 1 only not whole workbook

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: how to save a sheet using buttons in excel

    unless some-one can give you better code for this, 1 option would be, while still in record mode, to delete all the other sheets, and then SAVE AS with a different name. That way, your original file remains untouched, and you end up saving just the sheet you want...under a different name

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: how to save a sheet using buttons in excel

    Hi, semeer,

    Please Login or Register  to view this content.
    Right click the worksheet tab, move/copy, check for copy, enter new workbook in Combobox, record that action, work on the macro code as the code will be "hard coded" or ask for modification here.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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