Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-28-2008, 08:29 PM
Phil Wagner
 
Posts: n/a
macro button

I have a couple macros that I'd like the user to just press a button to use.

How do you create a button and assign it to a macro?

TIA
---
Phil


Reply With Quote
  #2 (permalink)  
Old 08-28-2008, 08:58 PM
Leo Rod
 
Posts: n/a
Re: macro button

Right click on any icon on your toolbars and select customize from the
menu -it's at the end of that list-
The Customize window will appear
Go to Commands and select "Macro" from the categories window
Then drag and drop one of the customizable icons to the toolbar wherever you
want it to be
right click on the icon you just introduced into your toolbars
select assing macro
pick your macro
Close the customization window.

Say a loud and clear "KAPOW", and that will be it.

write if the kapow does not work.

Leo Rod
MIA- Fl, USA


"Phil Wagner" <pmwslo@yahoo.com> wrote in message
news:g1Dtk.14779$_s1.1644@newsfe07.iad...
>I have a couple macros that I'd like the user to just press a button to
>use.
>
> How do you create a button and assign it to a macro?
>
> TIA
> ---
> Phil
>



Reply With Quote
  #3 (permalink)  
Old 08-28-2008, 09:27 PM
Phil Wagner
 
Posts: n/a
Re: macro button

Rod - I wanted the button to be in the spreadsheet, not on the toolbar. How
do you do that??

TIA

--
---
Phil
"Leo Rod" <no spam> wrote in message
news:edzRqhUCJHA.3668@TK2MSFTNGP05.phx.gbl...
> Right click on any icon on your toolbars and select customize from the
> menu -it's at the end of that list-
> The Customize window will appear
> Go to Commands and select "Macro" from the categories window
> Then drag and drop one of the customizable icons to the toolbar wherever
> you want it to be
> right click on the icon you just introduced into your toolbars
> select assing macro
> pick your macro
> Close the customization window.
>
> Say a loud and clear "KAPOW", and that will be it.
>
> write if the kapow does not work.
>
> Leo Rod
> MIA- Fl, USA
>
>
> "Phil Wagner" <pmwslo@yahoo.com> wrote in message
> news:g1Dtk.14779$_s1.1644@newsfe07.iad...
>>I have a couple macros that I'd like the user to just press a button to
>>use.
>>
>> How do you create a button and assign it to a macro?
>>
>> TIA
>> ---
>> Phil
>>

>
>



Reply With Quote
  #4 (permalink)  
Old 08-28-2008, 09:40 PM
Bob Phillips
 
Posts: n/a
Re: macro button

Tools>Customize>Toolbars, make sure that the Forms option is checked.

Drag the button off the forms toolbar onto the worksheet, you will
immediately be asked to assign a macro.

--
__________________________________
HTH

Bob

"Phil Wagner" <pmwslo@yahoo.com> wrote in message
news:iTDtk.738$3A4.372@newsfe04.iad...
> Rod - I wanted the button to be in the spreadsheet, not on the toolbar.
> How do you do that??
>
> TIA
>
> --
> ---
> Phil
> "Leo Rod" <no spam> wrote in message
> news:edzRqhUCJHA.3668@TK2MSFTNGP05.phx.gbl...
>> Right click on any icon on your toolbars and select customize from the
>> menu -it's at the end of that list-
>> The Customize window will appear
>> Go to Commands and select "Macro" from the categories window
>> Then drag and drop one of the customizable icons to the toolbar wherever
>> you want it to be
>> right click on the icon you just introduced into your toolbars
>> select assing macro
>> pick your macro
>> Close the customization window.
>>
>> Say a loud and clear "KAPOW", and that will be it.
>>
>> write if the kapow does not work.
>>
>> Leo Rod
>> MIA- Fl, USA
>>
>>
>> "Phil Wagner" <pmwslo@yahoo.com> wrote in message
>> news:g1Dtk.14779$_s1.1644@newsfe07.iad...
>>>I have a couple macros that I'd like the user to just press a button to
>>>use.
>>>
>>> How do you create a button and assign it to a macro?
>>>
>>> TIA
>>> ---
>>> Phil
>>>

>>
>>

>
>



Reply With Quote
  #5 (permalink)  
Old 08-28-2008, 09:41 PM
Dave Peterson
 
Posts: n/a
Re: macro button

in xl2003, I'd do:

View|toolbars|Forms
Then click on the button icon and draw on the worksheet.
Then assign the existing macro to this button.

(This is not the commandbutton from the Control toolbox toolbar.)

Phil Wagner wrote:
>
> I have a couple macros that I'd like the user to just press a button to use.
>
> How do you create a button and assign it to a macro?
>
> TIA
> ---
> Phil


--

Dave Peterson
Reply With Quote
  #6 (permalink)  
Old 08-28-2008, 09:51 PM
Leo Rod
 
Posts: n/a
Re: macro button

Open the edition view, and from the Toolbars item select "Control Toolbox"
This will open a toolbar
Select the "Command button" -it's the only one that looks like a button-
"Draw" the button by making a box anywhere on the spreadsheet where you want
the button to be.
Once it's created comes the "tricky part"
Right click on the button and select "view code"
Once it opens the VBA window copy the code from your macro -possibly on the
modules of your "personal.xls" workbook- and paste it into the blank space
under: "Private Sub CommandButton1_Click()" window on the workbook where you
want it inplanted.
-Be aware that this button will only run when you are using the workbook and
will not be stored on your personal.xls workbook where excel by default save
other macros.
Remove any extras "end sub" statements repeated at the end of the macro code
delete the name that you originally have for the macro and leave only the
button name.
close the vba window and save the spreadhseet.
test it.


"Phil Wagner" <pmwslo@yahoo.com> wrote in message
news:iTDtk.738$3A4.372@newsfe04.iad...
> Rod - I wanted the button to be in the spreadsheet, not on the toolbar.
> How do you do that??
>
> TIA
>
> --
> ---
> Phil
> "Leo Rod" <no spam> wrote in message
> news:edzRqhUCJHA.3668@TK2MSFTNGP05.phx.gbl...
>> Right click on any icon on your toolbars and select customize from the
>> menu -it's at the end of that list-
>> The Customize window will appear
>> Go to Commands and select "Macro" from the categories window
>> Then drag and drop one of the customizable icons to the toolbar wherever
>> you want it to be
>> right click on the icon you just introduced into your toolbars
>> select assing macro
>> pick your macro
>> Close the customization window.
>>
>> Say a loud and clear "KAPOW", and that will be it.
>>
>> write if the kapow does not work.
>>
>> Leo Rod
>> MIA- Fl, USA
>>
>>
>> "Phil Wagner" <pmwslo@yahoo.com> wrote in message
>> news:g1Dtk.14779$_s1.1644@newsfe07.iad...
>>>I have a couple macros that I'd like the user to just press a button to
>>>use.
>>>
>>> How do you create a button and assign it to a macro?
>>>
>>> TIA
>>> ---
>>> Phil
>>>

>>
>>

>
>



Reply With Quote
  #7 (permalink)  
Old 08-28-2008, 09:57 PM
Leo Rod
 
Posts: n/a
Re: macro button

sorry, I forgot to include before saving it to make the button functional,
open the "Control toolbox" toolbar and select "Exit desing mode" this will
turn the button functional allowing to edit the spreadsheet and not the
elements or properties of the spreadsheet.


"Bob Phillips" <BobNGs@somewhere.com> wrote in message
news:e73EE5UCJHA.2060@TK2MSFTNGP05.phx.gbl...
> Tools>Customize>Toolbars, make sure that the Forms option is checked.
>
> Drag the button off the forms toolbar onto the worksheet, you will
> immediately be asked to assign a macro.
>
> --
> __________________________________
> HTH
>
> Bob
>
> "Phil Wagner" <pmwslo@yahoo.com> wrote in message
> news:iTDtk.738$3A4.372@newsfe04.iad...
>> Rod - I wanted the button to be in the spreadsheet, not on the toolbar.
>> How do you do that??
>>
>> TIA
>>
>> --
>> ---
>> Phil
>> "Leo Rod" <no spam> wrote in message
>> news:edzRqhUCJHA.3668@TK2MSFTNGP05.phx.gbl...
>>> Right click on any icon on your toolbars and select customize from the
>>> menu -it's at the end of that list-
>>> The Customize window will appear
>>> Go to Commands and select "Macro" from the categories window
>>> Then drag and drop one of the customizable icons to the toolbar wherever
>>> you want it to be
>>> right click on the icon you just introduced into your toolbars
>>> select assing macro
>>> pick your macro
>>> Close the customization window.
>>>
>>> Say a loud and clear "KAPOW", and that will be it.
>>>
>>> write if the kapow does not work.
>>>
>>> Leo Rod
>>> MIA- Fl, USA
>>>
>>>
>>> "Phil Wagner" <pmwslo@yahoo.com> wrote in message
>>> news:g1Dtk.14779$_s1.1644@newsfe07.iad...
>>>>I have a couple macros that I'd like the user to just press a button to
>>>>use.
>>>>
>>>> How do you create a button and assign it to a macro?
>>>>
>>>> TIA
>>>> ---
>>>> Phil
>>>>
>>>
>>>

>>
>>

>
>



Reply With Quote
  #8 (permalink)  
Old 08-28-2008, 11:17 PM
Phil Wagner
 
Posts: n/a
Re: macro button

Thanks! This worked fine.

---
Phil
"Bob Phillips" <BobNGs@somewhere.com> wrote in message
news:e73EE5UCJHA.2060@TK2MSFTNGP05.phx.gbl...
> Tools>Customize>Toolbars, make sure that the Forms option is checked.
>
> Drag the button off the forms toolbar onto the worksheet, you will
> immediately be asked to assign a macro.
>
> --
> __________________________________
> HTH
>
> Bob
>
> "Phil Wagner" <pmwslo@yahoo.com> wrote in message
> news:iTDtk.738$3A4.372@newsfe04.iad...
>> Rod - I wanted the button to be in the spreadsheet, not on the toolbar.
>> How do you do that??
>>
>> TIA
>>
>> --
>> ---
>> Phil
>> "Leo Rod" <no spam> wrote in message
>> news:edzRqhUCJHA.3668@TK2MSFTNGP05.phx.gbl...
>>> Right click on any icon on your toolbars and select customize from the
>>> menu -it's at the end of that list-
>>> The Customize window will appear
>>> Go to Commands and select "Macro" from the categories window
>>> Then drag and drop one of the customizable icons to the toolbar wherever
>>> you want it to be
>>> right click on the icon you just introduced into your toolbars
>>> select assing macro
>>> pick your macro
>>> Close the customization window.
>>>
>>> Say a loud and clear "KAPOW", and that will be it.
>>>
>>> write if the kapow does not work.
>>>
>>> Leo Rod
>>> MIA- Fl, USA
>>>
>>>
>>> "Phil Wagner" <pmwslo@yahoo.com> wrote in message
>>> news:g1Dtk.14779$_s1.1644@newsfe07.iad...
>>>>I have a couple macros that I'd like the user to just press a button to
>>>>use.
>>>>
>>>> How do you create a button and assign it to a macro?
>>>>
>>>> TIA
>>>> ---
>>>> Phil
>>>>
>>>
>>>

>>
>>

>
>



Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:13 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Loans | Remortgages | Nature's Sunshine | Loans | Recreation Sites



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114