If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Command Button in Pivot Chart

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-25-08, 11:28
akhlaq768 akhlaq768 is offline
Registered User
 
Join Date: Oct 2007
Posts: 127
Command Button in Pivot Chart

How do i add a command button (macro) to a Pivot Chart. As my doesn't allow me to select the command button from the Control Toolbox.
Reply With Quote
  #2 (permalink)  
Old 01-25-08, 12:34
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Howdy. In regard to both questions, I wonder if it might be better to consider making the Pivot Table and Chart all in VBA. Bill Jelen, et al, VBA and Macros for MS Excel, chapter 12 have code examples and instructions about how to do all this.

The VBA approach gives you much more control, and in the long run can be faster than what you are trying now.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #3 (permalink)  
Old 01-25-08, 12:41
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
If you want just a button connected to a macro, then instead of using the Control Toolbox, use the Forms toolbar which you can draw on the Pivot Chart.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
Reply

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

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