+ Reply to Thread
Results 1 to 2 of 2

[SOLVED] How do I make Command button ( Save & Exit) for Excel

  1. #1
    Abutaha
    Guest

    [SOLVED] How do I make Command button ( Save & Exit) for Excel

    I would like to build a command button to be used in Excel
    The function of button is ( Save file then Exit ) - How to make this command
    button by Visual Basic . Thanks for help

  2. #2
    Ron de Bruin
    Guest

    Re: How do I make Command button ( Save & Exit) for Excel

    Hi Abutaha

    This is the code line you need
    ActiveWorkbook.Close True

    Add a button on your sheet from the Forms or control toolbox toolbar
    and assign a macro with this code line to it.


    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "Abutaha" <[email protected]> wrote in message news:[email protected]...
    >I would like to build a command button to be used in Excel
    > The function of button is ( Save file then Exit ) - How to make this command
    > button by Visual Basic . Thanks for help




+ 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