+ Reply to Thread
Results 1 to 2 of 2

Command button that runs a command

  1. #1
    Registered User
    Join Date
    12-01-2017
    Location
    Queens, NY
    MS-Off Ver
    MS Office Pro Plus 2016
    Posts
    5

    Command button that runs a command

    Hi,
    I have an expense sheet in Excel and rather than have others enter data into each cell, I want them to use the Form command but, the Form command is only available from the QAT and only after adding it.

    Now, since the Form command isn't available from any menu and can only be used if added to the QAT, if I send this spreadsheet to someone who doesn't know about it, they are going to make a mess of my spreadsheet.

    I got the idea of adding a button that they could just click and tada; the Form opens for their entries, then I may even be able to lock the spreadsheet to prevent accidental messes.

    The problem is; how do I get the button to behave like this?

    I do not know VB as a friend suggested but I thought; it's a command. It must reside somewhere and therefore all I need is to find it's name and then figure out how to call it.

    Any help would be greatly appreciated.

    Mike.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Command button that runs a command

    .
    If you are wanting to show a form you can use this macro as an example. You will
    need to edit the form name to match your form's name :

    Please Login or Register  to view this content.
    Place a command button on a sheet and attach it to this macro.

+ 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. Keep a command button in place on the same row after macro runs?
    By maym in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2018, 08:02 PM
  2. Error message needed if text is red before a command button runs it's coding
    By kjb123 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-27-2017, 06:20 PM
  3. Replies: 2
    Last Post: 02-02-2016, 10:27 PM
  4. 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
  5. [SOLVED] Macro runs correctly when run from Editor, but not from Command Button??
    By Nola111 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2014, 02:20 PM
  6. [SOLVED] code behind the command button that runs another macro
    By Vogelmann in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-10-2012, 06:04 AM
  7. Excel - keep a command button from moving after code runs?
    By Dave Little in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-28-2005, 10:05 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