Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Gee Gee is offline
external usenet poster
 
Posts: 32
Default Command Button in Excel 2007 Chart

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Command Button in Excel 2007 Chart

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
  #3   Report Post  
Posted to microsoft.public.excel.programming
Gee Gee is offline
external usenet poster
 
Posts: 32
Default Command Button in Excel 2007 Chart

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
.

  #4   Report Post  
Posted to microsoft.public.excel.programming
Gee Gee is offline
external usenet poster
 
Posts: 32
Default Command Button in Excel 2007 Chart

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
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
change the command button backcolor in Excel 2007? fisch4bill Excel Programming 2 November 5th 09 03:30 PM
print command from command button in userform causes double chart Mike Jamesson Excel Programming 5 August 11th 09 03:42 AM
What is the VBA for the Excel 2007 "Switch Window" command button? ND Pard Excel Programming 6 March 4th 09 10:39 PM
Command Button Excel 2007 dhstein Excel Discussion (Misc queries) 4 February 15th 09 04:14 PM
I can't find the command button control object in Excel 2007 Raas Excel Discussion (Misc queries) 4 April 2nd 07 03:46 PM


All times are GMT +1. The time now is 09:50 PM.

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

About Us

"It's about Microsoft Excel"