PC Review


Reply
Thread Tools Rate Thread

Button to take the user in a different place on the same sheet

 
 
Johanna Gronlund
Guest
Posts: n/a
 
      1st Apr 2010
Hello,

I have a command button (Button 4585). I would like it to take the user to
another place (cells A147:A180) on the same sheet (Sheet 10). Is this
possible? I cannot just use a hyperlink on a cell as the button only becomes
visible if the user makes certain choices.

Thanks very much in advance.

Johanna

 
Reply With Quote
 
 
 
 
Jason Falzon
Guest
Posts: n/a
 
      1st Apr 2010
Try attaching this macro

Sub Button4585_Click()

Sheets("Sheet10").Activate
'Range("A147").Select 'this will go to A147
Range("A147:A180").Select 'this will HIGHLIGHT range

End Sub


Choose one of the Range() lines only remove ' from Range("A147").select if
want to use that

Jason
"Johanna Gronlund" wrote:

> Hello,
>
> I have a command button (Button 4585). I would like it to take the user to
> another place (cells A147:A180) on the same sheet (Sheet 10). Is this
> possible? I cannot just use a hyperlink on a cell as the button only becomes
> visible if the user makes certain choices.
>
> Thanks very much in advance.
>
> Johanna
>

 
Reply With Quote
 
Jason Falzon
Guest
Posts: n/a
 
      1st Apr 2010
Also in your case use


Sheets("Sheet 10").Activate

and not Sheet10 as your sheet name has a space.


Jason

"Jason Falzon" wrote:

> Try attaching this macro
>
> Sub Button4585_Click()
>
> Sheets("Sheet10").Activate
> 'Range("A147").Select 'this will go to A147
> Range("A147:A180").Select 'this will HIGHLIGHT range
>
> End Sub
>
>
> Choose one of the Range() lines only remove ' from Range("A147").select if
> want to use that
>
> Jason
> "Johanna Gronlund" wrote:
>
> > Hello,
> >
> > I have a command button (Button 4585). I would like it to take the user to
> > another place (cells A147:A180) on the same sheet (Sheet 10). Is this
> > possible? I cannot just use a hyperlink on a cell as the button only becomes
> > visible if the user makes certain choices.
> >
> > Thanks very much in advance.
> >
> > Johanna
> >

 
Reply With Quote
 
Johanna Gronlund
Guest
Posts: n/a
 
      1st Apr 2010
Thanks, this was very useful and worked.

Johanna



"Jason Falzon" wrote:

> Also in your case use
>
>
> Sheets("Sheet 10").Activate
>
> and not Sheet10 as your sheet name has a space.
>
>
> Jason
>
> "Jason Falzon" wrote:
>
> > Try attaching this macro
> >
> > Sub Button4585_Click()
> >
> > Sheets("Sheet10").Activate
> > 'Range("A147").Select 'this will go to A147
> > Range("A147:A180").Select 'this will HIGHLIGHT range
> >
> > End Sub
> >
> >
> > Choose one of the Range() lines only remove ' from Range("A147").select if
> > want to use that
> >
> > Jason
> > "Johanna Gronlund" wrote:
> >
> > > Hello,
> > >
> > > I have a command button (Button 4585). I would like it to take the user to
> > > another place (cells A147:A180) on the same sheet (Sheet 10). Is this
> > > possible? I cannot just use a hyperlink on a cell as the button only becomes
> > > visible if the user makes certain choices.
> > >
> > > Thanks very much in advance.
> > >
> > > Johanna
> > >

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      1st Apr 2010
First give the range a name.

Insert>Name>Define myrng

Private Sub CommandButton1_Click()
Application.Goto Reference:="myrng"
End Sub


Gord Dibben MS Excel MVP

On Thu, 1 Apr 2010 00:41:01 -0700, Johanna Gronlund
<(E-Mail Removed)> wrote:

>Hello,
>
>I have a command button (Button 4585). I would like it to take the user to
>another place (cells A147:A180) on the same sheet (Sheet 10). Is this
>possible? I cannot just use a hyperlink on a cell as the button only becomes
>visible if the user makes certain choices.
>
>Thanks very much in advance.
>
>Johanna


 
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
command button to move user to specific spot on different sheet grime Microsoft Excel Programming 7 13th Jan 2006 07:21 PM
How do I create a macro button and place anywhere on my sheet? =?Utf-8?B?VmVsbCBILiBIb2xjb21iZSwgUC5FLg==?= Microsoft Excel Misc 1 20th Jan 2005 04:06 PM
Can I change my physical place of a user profile place on hard disk? Vahid Windows XP Customization 2 21st Aug 2004 09:50 PM
Can I change my physical place of a user profile place on hard disk? Vahid Windows XP Customization 0 6th Aug 2004 09:23 PM
place an event when a user clicks a navagational button IT Microsoft Access 3 20th Feb 2004 09:17 PM


Features
 

Advertising
 

Newsgroups
 


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