I create a new Excel spreadsheet for various purposes about once per
year. Inevitably, after I figure out all the commands and functions I
want to utilize for one spreadsheet, I forget everything by the time I
start a new spreadsheet. Thus this question....
How do I insert a button into a cell that, when pushed, will run a
macro?
I basically have a project tracking spreadsheet and want to put dates
in a cell when a task is complete. I want a button in the corner of
the cell that will insert the current date and alert the user that he
is changing a date if the button is presed with a date in the cell.
I can write the macro, but I can't for the love of me remember how to
insert the button and link the macro to it. I know I've done this
before.
Thanks for any help..... --
Robb W
------------------------------------------------------------------------
Robb W's Profile: www.excelforum.com/member.php...oamp;userid=33908
View this thread: www.excelforum.com/showthread...hreadid=536853Right click anywhere on the upper tool bar and select Forms. It has a
button icon to make the button and will prompt you to assign a macro to it.
If you already have a button, right click and check Assign Macro.
The button doesn't go in a cell but right click the button and on Format
Control gt; Properties gt; check the options that suit you.
HTH
Regards,
Howard
quot;Robb Wquot; gt; wrote in
message ...
gt;
gt; I create a new Excel spreadsheet for various purposes about once per
gt; year. Inevitably, after I figure out all the commands and functions I
gt; want to utilize for one spreadsheet, I forget everything by the time I
gt; start a new spreadsheet. Thus this question....
gt;
gt; How do I insert a button into a cell that, when pushed, will run a
gt; macro?
gt;
gt; I basically have a project tracking spreadsheet and want to put dates
gt; in a cell when a task is complete. I want a button in the corner of
gt; the cell that will insert the current date and alert the user that he
gt; is changing a date if the button is presed with a date in the cell.
gt;
gt; I can write the macro, but I can't for the love of me remember how to
gt; insert the button and link the macro to it. I know I've done this
gt; before.
gt;
gt; Thanks for any help.....
gt;
gt;
gt; --
gt; Robb W
gt; ------------------------------------------------------------------------
gt; Robb W's Profile:
gt; www.excelforum.com/member.php...oamp;userid=33908
gt; View this thread: www.excelforum.com/showthread...hreadid=536853
gt;
Show the Forms toolbar
Click on the button and draw the opposite corners on the worksheet
After you've created the button, you can assign the macro to the button. If
your macro isn't ready, you can dismiss that dialog.
When the macro is available, just rightclick on the button and choose Assign
Macro.
Robb W wrote:
gt;
gt; I create a new Excel spreadsheet for various purposes about once per
gt; year. Inevitably, after I figure out all the commands and functions I
gt; want to utilize for one spreadsheet, I forget everything by the time I
gt; start a new spreadsheet. Thus this question....
gt;
gt; How do I insert a button into a cell that, when pushed, will run a
gt; macro?
gt;
gt; I basically have a project tracking spreadsheet and want to put dates
gt; in a cell when a task is complete. I want a button in the corner of
gt; the cell that will insert the current date and alert the user that he
gt; is changing a date if the button is presed with a date in the cell.
gt;
gt; I can write the macro, but I can't for the love of me remember how to
gt; insert the button and link the macro to it. I know I've done this
gt; before.
gt;
gt; Thanks for any help.....
gt;
gt; --
gt; Robb W
gt; ------------------------------------------------------------------------
gt; Robb W's Profile: www.excelforum.com/member.php...oamp;userid=33908
gt; View this thread: www.excelforum.com/showthread...hreadid=536853
--
Dave Peterson
Thank you both!--
Robb W
------------------------------------------------------------------------
Robb W's Profile: www.excelforum.com/member.php...oamp;userid=33908
View this thread: www.excelforum.com/showthread...hreadid=536853
- Sep 10 Mon 2007 20:39
Inserting a button into a cell and linking it to a macro
close
全站熱搜
留言列表
發表留言