+ Reply to Thread
Results 1 to 4 of 4

Add a button to run a command in a cell

  1. #1
    Registered User
    Join Date
    03-25-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2016
    Posts
    98

    Add a button to run a command in a cell

    I had this post in general question but it might be better severed here.
    Hi, I was helped by a few great members of the forum to create an email based on cells in my Excel. For reference if needed that post was on https://www.excelforum.com/excel-for...ml#post5715764
    Everything works great but instead of seeing the command link it creates in cell B7 I wanted to make a button that I could press to have it run that command. I'm not sure how to do it since it isn't VBA? I'm hoping it is a simple request. So on the attached if I click the button I have pasted in B10, can it run the command in B7?
    Any help would be greatly appreciated.

    Dave
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Add a button to run a command in a cell

    You'll need a macro to select B7 and enable send

    Developer Tab
    Insert
    Form Controls
    Button
    (Rename and assign Macro.) Reposition as needed.

    A macro would be:

    Please Login or Register  to view this content.

    Save file as .xlsm

    Pete

  3. #3
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Add a button to run a command in a cell

    Maybe assign this macro to your button?

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-25-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2016
    Posts
    98

    Re: Add a button to run a command in a cell

    That did it!!! thank you very much!!!

    Dave

+ 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. [SOLVED] Copying ActiveX Command Button from master sheet to subsheets. command button code missing
    By popper08 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-13-2020, 10:15 AM
  2. [SOLVED] How to select a option button based on a command button selection and cell value
    By machoman4lyf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-14-2018, 02:19 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. Tab sequence from cell to active x button and then to a command button
    By 2funny4words in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2009, 02:27 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