PC Review


Reply
Thread Tools Rate Thread

Command Button in Excel 2007 Chart

 
 
Gee
Guest
Posts: n/a
 
      9th Mar 2010
Hello,
I have buttons in a spreadsheet that let the user go right to a particular
chart.
Each chart has it's own sheet.
I need a button to go back to the spreadsheet called "INDEX".
I had done this in Excel 2003 no problem...just stuck a button on the chart
and

Private Sub CommandButton1_Click()
Sheets("INDEX").Select
End Sub

It will not work in 2007.
It won't even let me get at the button once I've pasted it in.
What am I doing wrong?
Thank you in advance for any help you can give me.
Gee
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      9th Mar 2010
I bet you didn't use the commandbutton from the control toolbox toolbar in
xl2003.

Try using the Button from the Forms toolbar. You'll have to assign the macro
the button, too.

(Same as with xl2003.)

Gee wrote:
>
> Hello,
> I have buttons in a spreadsheet that let the user go right to a particular
> chart.
> Each chart has it's own sheet.
> I need a button to go back to the spreadsheet called "INDEX".
> I had done this in Excel 2003 no problem...just stuck a button on the chart
> and
>
> Private Sub CommandButton1_Click()
> Sheets("INDEX").Select
> End Sub
>
> It will not work in 2007.
> It won't even let me get at the button once I've pasted it in.
> What am I doing wrong?
> Thank you in advance for any help you can give me.
> Gee


--

Dave Peterson
 
Reply With Quote
 
Gee
Guest
Posts: n/a
 
      9th Mar 2010
Ah, but I did use the command button from the toolbox toolbar!
I tried to assign a macro and I can't even get that on a right click. I
right click the button and it gives me choices for the whole chart, not the
button.
It just sits there, like it's in design mode, whether it's in decign mode or
not.



"Dave Peterson" wrote:

> I bet you didn't use the commandbutton from the control toolbox toolbar in
> xl2003.
>
> Try using the Button from the Forms toolbar. You'll have to assign the macro
> the button, too.
>
> (Same as with xl2003.)
>
> Gee wrote:
> >
> > Hello,
> > I have buttons in a spreadsheet that let the user go right to a particular
> > chart.
> > Each chart has it's own sheet.
> > I need a button to go back to the spreadsheet called "INDEX".
> > I had done this in Excel 2003 no problem...just stuck a button on the chart
> > and
> >
> > Private Sub CommandButton1_Click()
> > Sheets("INDEX").Select
> > End Sub
> >
> > It will not work in 2007.
> > It won't even let me get at the button once I've pasted it in.
> > What am I doing wrong?
> > Thank you in advance for any help you can give me.
> > Gee

>
> --
>
> Dave Peterson
> .
>

 
Reply With Quote
 
Gee
Guest
Posts: n/a
 
      9th Mar 2010
NO, wait, I pasted one from another spreadsheet...I tried again and it is
working now, Thanks, Mr. Peterson!

"Gee" wrote:

> Ah, but I did use the command button from the toolbox toolbar!
> I tried to assign a macro and I can't even get that on a right click. I
> right click the button and it gives me choices for the whole chart, not the
> button.
> It just sits there, like it's in design mode, whether it's in decign mode or
> not.
>
>
>
> "Dave Peterson" wrote:
>
> > I bet you didn't use the commandbutton from the control toolbox toolbar in
> > xl2003.
> >
> > Try using the Button from the Forms toolbar. You'll have to assign the macro
> > the button, too.
> >
> > (Same as with xl2003.)
> >
> > Gee wrote:
> > >
> > > Hello,
> > > I have buttons in a spreadsheet that let the user go right to a particular
> > > chart.
> > > Each chart has it's own sheet.
> > > I need a button to go back to the spreadsheet called "INDEX".
> > > I had done this in Excel 2003 no problem...just stuck a button on the chart
> > > and
> > >
> > > Private Sub CommandButton1_Click()
> > > Sheets("INDEX").Select
> > > End Sub
> > >
> > > It will not work in 2007.
> > > It won't even let me get at the button once I've pasted it in.
> > > What am I doing wrong?
> > > Thank you in advance for any help you can give me.
> > > Gee

> >
> > --
> >
> > Dave Peterson
> > .
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
change the command button backcolor in Excel 2007? fisch4bill Microsoft Excel Programming 2 5th Nov 2009 03:30 PM
Adding a Custom Command Button to the Excel 2007 Ribbon Bishop Microsoft Excel Programming 1 18th May 2009 02:43 PM
Command Button Excel 2007 dhstein Microsoft Excel Misc 4 15th Feb 2009 04:14 PM
Loss of Chart Window command in Excel 2007 don Microsoft Excel Discussion 0 15th Jun 2007 11:14 AM
I can't find the command button control object in Excel 2007 =?Utf-8?B?UmFhcw==?= Microsoft Excel Misc 4 2nd Apr 2007 03:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:46 PM.