#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 516
Default buttons

how do I add a macro to a button? I am able to print a hole sheet from 1
button but I only want to print 1 page of the sheet not the whole and I can
not add the macro to the button. how can I do this?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default buttons

Show the Forms toolbar
In xl2003 menus, View|Toolbars|check Forms

Then click on the button and draw it where you want it.

You'll be prompted to assign your macro to that button. If you choose to assign
the macro later, you can rightclick on that button and select Assign Macro.

The button from the Forms toolbar behaves differently from the commandbutton
from the Control toolbox toolbar.

Matt wrote:

how do I add a macro to a button? I am able to print a hole sheet from 1
button but I only want to print 1 page of the sheet not the whole and I can
not add the macro to the button. how can I do this?

Thanks


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 516
Default buttons

I created my contraol button and when I right click I only get
cut
copy
paste

Properites
View code

Command buttion

Hpow do I get the assign macro button when I right click?








"Dave Peterson" wrote:

Show the Forms toolbar
In xl2003 menus, View|Toolbars|check Forms

Then click on the button and draw it where you want it.

You'll be prompted to assign your macro to that button. If you choose to assign
the macro later, you can rightclick on that button and select Assign Macro.

The button from the Forms toolbar behaves differently from the commandbutton
from the Control toolbox toolbar.

Matt wrote:

how do I add a macro to a button? I am able to print a hole sheet from 1
button but I only want to print 1 page of the sheet not the whole and I can
not add the macro to the button. how can I do this?

Thanks


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default buttons

You used a commandbutton from the control toolbox toolbar.

Delete that commandbutton.

Show the Forms toolbar.

Use the button from that forms toolbar.

Matt wrote:

I created my contraol button and when I right click I only get
cut
copy
paste

Properites
View code

Command buttion

Hpow do I get the assign macro button when I right click?

"Dave Peterson" wrote:

Show the Forms toolbar
In xl2003 menus, View|Toolbars|check Forms

Then click on the button and draw it where you want it.

You'll be prompted to assign your macro to that button. If you choose to assign
the macro later, you can rightclick on that button and select Assign Macro.

The button from the Forms toolbar behaves differently from the commandbutton
from the Control toolbox toolbar.

Matt wrote:

how do I add a macro to a button? I am able to print a hole sheet from 1
button but I only want to print 1 page of the sheet not the whole and I can
not add the macro to the button. how can I do this?

Thanks


--

Dave Peterson


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Option Buttons/Radio Buttons John Calder New Users to Excel 7 May 16th 08 03:51 AM
Form buttons vs. ActiveX Buttons GeorgeJ Excel Discussion (Misc queries) 3 August 11th 07 09:02 PM
have toggle buttons but everytime print preview buttons move TinSandhu Excel Discussion (Misc queries) 1 October 11th 06 02:57 PM
pivot chart is it possible to hide individual field buttons? Layout Field buttons Matt Charts and Charting in Excel 0 August 27th 06 02:57 PM
buttons? rio Excel Worksheet Functions 1 February 7th 06 04:05 AM


All times are GMT +1. The time now is 01:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"