PC Review


Reply
Thread Tools Rate Thread

command buttons

 
 
Ayman
Guest
Posts: n/a
 
      27th Oct 2008
I want to put a command button that just takes me to a cell in the
spreadsheet when i click it. for example, if i want to scroll to cell G50 to
view phillies statistics, all i have to do is click the command button that
says phillies statistics, but it is programmed to just go to cell G50.

Thanks,
Ayman
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      27th Oct 2008
Hi,

Put a button on your sheet and change the caption to "phillies statistics".
View code and the code for the button is

Application.Goto Range("G50")


Mike


"Ayman" wrote:

> I want to put a command button that just takes me to a cell in the
> spreadsheet when i click it. for example, if i want to scroll to cell G50 to
> view phillies statistics, all i have to do is click the command button that
> says phillies statistics, but it is programmed to just go to cell G50.
>
> Thanks,
> Ayman

 
Reply With Quote
 
Ayman
Guest
Posts: n/a
 
      27th Oct 2008
Thank you so much. It was so simple, just had no idea what the code was.
Worked perfectly.

Ayman

"Mike H" wrote:

> Hi,
>
> Put a button on your sheet and change the caption to "phillies statistics".
> View code and the code for the button is
>
> Application.Goto Range("G50")
>
>
> Mike
>
>
> "Ayman" wrote:
>
> > I want to put a command button that just takes me to a cell in the
> > spreadsheet when i click it. for example, if i want to scroll to cell G50 to
> > view phillies statistics, all i have to do is click the command button that
> > says phillies statistics, but it is programmed to just go to cell G50.
> >
> > Thanks,
> > Ayman

 
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
Form buttons and Control Command Buttons ranswrt Microsoft Excel Programming 0 7th Aug 2008 11:36 PM
Command Buttons Jay Dawg Microsoft Access 3 18th Jul 2008 08:48 PM
Command Buttons again =?Utf-8?B?Y29hc3RhbA==?= Microsoft Access 1 23rd Aug 2006 10:51 PM
Command Buttons =?Utf-8?B?UmFjaGVs?= Microsoft Access Forms 0 17th Sep 2004 08:41 PM
Control Buttons vs. Command Buttons Robert Gibson Microsoft Excel Programming 1 13th Oct 2003 04:33 PM


Features
 

Advertising
 

Newsgroups
 


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