PC Review


Reply
Thread Tools Rate Thread

Button to change view location

 
 
=?Utf-8?B?S2VpdGgtTkI=?=
Guest
Posts: n/a
 
      26th Sep 2007
I dug around but didn't find this issue (although likely basic). I'm no VBA
programmer so step by step help would be appreciated.

I have a multi-sheet workbook. "Summary", "Detail1", "Detail2".

In the summary sheet, I would like to have three buttons:
1. When pressed would move the user to view "Detail1" with cell A1 in the
upper left corner.
2. When pressed would move the user to view "Detail1" with cell A1352 in
the upper left corner.
3. When pressed would move the user to view "Detail2" with cell CC1219 in
the upper left corner.

This would greatly ease my use of excel for a collaborative presentation.
Any help will be appreciated. These community boards are awesome!

Best,
Keith
 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      26th Sep 2007
Application.Goto Range:=Worksheets("Detail1") _
.Range("A1352"), Scroll:=True

would be in the click event of the button. Just change the details of the
location to go to for each of the other.

--
Regards,
Tom Ogilvy


"Keith-NB" wrote:

> I dug around but didn't find this issue (although likely basic). I'm no VBA
> programmer so step by step help would be appreciated.
>
> I have a multi-sheet workbook. "Summary", "Detail1", "Detail2".
>
> In the summary sheet, I would like to have three buttons:
> 1. When pressed would move the user to view "Detail1" with cell A1 in the
> upper left corner.
> 2. When pressed would move the user to view "Detail1" with cell A1352 in
> the upper left corner.
> 3. When pressed would move the user to view "Detail2" with cell CC1219 in
> the upper left corner.
>
> This would greatly ease my use of excel for a collaborative presentation.
> Any help will be appreciated. These community boards are awesome!
>
> Best,
> Keith

 
Reply With Quote
 
=?Utf-8?B?S2VpdGgtTkI=?=
Guest
Posts: n/a
 
      26th Sep 2007
Tom, thanks!

Just one last super-newbie thing. Where do I put that?

I can place the button, and then right click to "view code", select the
button and click, and get this:

Private Sub CommandButton1_Click()

End Sub

Everything I try from there doesn't work. Sorry for the super newbie but
everyone starts somewhere. Again, I dug around but didn't find the answer (I
tried a bunch but none worked).

Thanks!

"Tom Ogilvy" wrote:

> Application.Goto Range:=Worksheets("Detail1") _
> .Range("A1352"), Scroll:=True
>
> would be in the click event of the button. Just change the details of the
> location to go to for each of the other.
>
> --
> Regards,
> Tom Ogilvy
>
>
> "Keith-NB" wrote:
>
> > I dug around but didn't find this issue (although likely basic). I'm no VBA
> > programmer so step by step help would be appreciated.
> >
> > I have a multi-sheet workbook. "Summary", "Detail1", "Detail2".
> >
> > In the summary sheet, I would like to have three buttons:
> > 1. When pressed would move the user to view "Detail1" with cell A1 in the
> > upper left corner.
> > 2. When pressed would move the user to view "Detail1" with cell A1352 in
> > the upper left corner.
> > 3. When pressed would move the user to view "Detail2" with cell CC1219 in
> > the upper left corner.
> >
> > This would greatly ease my use of excel for a collaborative presentation.
> > Any help will be appreciated. These community boards are awesome!
> >
> > Best,
> > Keith

 
Reply With Quote
 
dan dungan
Guest
Posts: n/a
 
      27th Sep 2007
Hi Keith,

Did you try?:

Private Sub CommandButton1_Click()
Application.Goto Range:=Worksheets("Detail1") _
.Range("A1352"), Scroll:=True
End Sub

Dan

On Sep 26, 1:32 pm, Keith-NB <Keit...@discussions.microsoft.com>
wrote:
> Tom, thanks!
>
> Just one last super-newbie thing. Where do I put that?
>
> I can place the button, and then right click to "view code", select the
> button and click, and get this:
>
> Private Sub CommandButton1_Click()
>
> End Sub
>
> Everything I try from there doesn't work. Sorry for the super newbie but
> everyone starts somewhere. Again, I dug around but didn't find the answer (I
> tried a bunch but none worked).
>
> Thanks!
>
> "Tom Ogilvy" wrote:
> > Application.Goto Range:=Worksheets("Detail1") _
> > .Range("A1352"), Scroll:=True

>
> > would be in the click event of the button. Just change the details of the
> > location to go to for each of the other.

>
> > --
> > Regards,
> > Tom Ogilvy

>
> > "Keith-NB" wrote:

>
> > > I dug around but didn't find this issue (although likely basic). I'm no VBA
> > > programmer so step by step help would be appreciated.

>
> > > I have a multi-sheet workbook. "Summary", "Detail1", "Detail2".

>
> > > In the summary sheet, I would like to have three buttons:
> > > 1. When pressed would move the user to view "Detail1" with cell A1 in the
> > > upper left corner.
> > > 2. When pressed would move the user to view "Detail1" with cell A1352 in
> > > the upper left corner.
> > > 3. When pressed would move the user to view "Detail2" with cell CC1219 in
> > > the upper left corner.

>
> > > This would greatly ease my use of excel for a collaborative presentation.
> > > Any help will be appreciated. These community boards are awesome!

>
> > > Best,
> > > Keith



 
Reply With Quote
 
=?Utf-8?B?S2VpdGgtTkI=?=
Guest
Posts: n/a
 
      27th Sep 2007
Dan, Team,
I did try the code below. It ran but came back with an error of something
along the line of "invalid outside procedure", highlighting the A1352 text.

Any thoughts on why that would be and what I need to do to debug?

Thanks again to all for the assistance.

Best,
Keith



"dan dungan" wrote:

> Hi Keith,
>
> Did you try?:
>
> Private Sub CommandButton1_Click()
> Application.Goto Range:=Worksheets("Detail1") _
> .Range("A1352"), Scroll:=True
> End Sub
>
> Dan
>
> On Sep 26, 1:32 pm, Keith-NB <Keit...@discussions.microsoft.com>
> wrote:
> > Tom, thanks!
> >
> > Just one last super-newbie thing. Where do I put that?
> >
> > I can place the button, and then right click to "view code", select the
> > button and click, and get this:
> >
> > Private Sub CommandButton1_Click()
> >
> > End Sub
> >
> > Everything I try from there doesn't work. Sorry for the super newbie but
> > everyone starts somewhere. Again, I dug around but didn't find the answer (I
> > tried a bunch but none worked).
> >
> > Thanks!
> >
> > "Tom Ogilvy" wrote:
> > > Application.Goto Range:=Worksheets("Detail1") _
> > > .Range("A1352"), Scroll:=True

> >
> > > would be in the click event of the button. Just change the details of the
> > > location to go to for each of the other.

> >
> > > --
> > > Regards,
> > > Tom Ogilvy

> >
> > > "Keith-NB" wrote:

> >
> > > > I dug around but didn't find this issue (although likely basic). I'm no VBA
> > > > programmer so step by step help would be appreciated.

> >
> > > > I have a multi-sheet workbook. "Summary", "Detail1", "Detail2".

> >
> > > > In the summary sheet, I would like to have three buttons:
> > > > 1. When pressed would move the user to view "Detail1" with cell A1 in the
> > > > upper left corner.
> > > > 2. When pressed would move the user to view "Detail1" with cell A1352 in
> > > > the upper left corner.
> > > > 3. When pressed would move the user to view "Detail2" with cell CC1219 in
> > > > the upper left corner.

> >
> > > > This would greatly ease my use of excel for a collaborative presentation.
> > > > Any help will be appreciated. These community boards are awesome!

> >
> > > > Best,
> > > > Keith

>
>
>

 
Reply With Quote
 
dan dungan
Guest
Posts: n/a
 
      27th Sep 2007
Hi Keith,

When I tested this the error was "Named argument not found".

Try changing

Application.Goto Range:=Worksheets("Detail1") _
> > .Range("A1352"), Scroll:=True


to

Application.Goto Reference:=Worksheets("Detail1") _
> > .Range("A1352"), Scroll:=True


Dan

On Sep 27, 7:36 am, Keith-NB <Keit...@discussions.microsoft.com>
wrote:
> Dan, Team,
> I did try the code below. It ran but came back with an error of something
> along the line of "invalid outside procedure", highlighting the A1352 text.
>
> Any thoughts on why that would be and what I need to do to debug?
>
> Thanks again to all for the assistance.
>
> Best,
> Keith
>
> "dan dungan" wrote:
> > Hi Keith,

>
> > Did you try?:

>
> > Private Sub CommandButton1_Click()
> > Application.Goto Range:=Worksheets("Detail1") _
> > .Range("A1352"), Scroll:=True
> > End Sub

>
> > Dan

>
> > On Sep 26, 1:32 pm, Keith-NB <Keit...@discussions.microsoft.com>
> > wrote:
> > > Tom, thanks!

>
> > > Just one last super-newbie thing. Where do I put that?

>
> > > I can place the button, and then right click to "view code", select the
> > > button and click, and get this:

>
> > > Private Sub CommandButton1_Click()

>
> > > End Sub

>
> > > Everything I try from there doesn't work. Sorry for the super newbie but
> > > everyone starts somewhere. Again, I dug around but didn't find the answer (I
> > > tried a bunch but none worked).

>
> > > Thanks!

>
> > > "Tom Ogilvy" wrote:
> > > > Application.Goto Range:=Worksheets("Detail1") _
> > > > .Range("A1352"), Scroll:=True

>
> > > > would be in the click event of the button. Just change the details of the
> > > > location to go to for each of the other.

>
> > > > --
> > > > Regards,
> > > > Tom Ogilvy

>
> > > > "Keith-NB" wrote:

>
> > > > > I dug around but didn't find this issue (although likely basic). I'm no VBA
> > > > > programmer so step by step help would be appreciated.

>
> > > > > I have a multi-sheet workbook. "Summary", "Detail1", "Detail2".

>
> > > > > In the summary sheet, I would like to have three buttons:
> > > > > 1. When pressed would move the user to view "Detail1" with cell A1 in the
> > > > > upper left corner.
> > > > > 2. When pressed would move the user to view "Detail1" with cell A1352 in
> > > > > the upper left corner.
> > > > > 3. When pressed would move the user to view "Detail2" with cell CC1219 in
> > > > > the upper left corner.

>
> > > > > This would greatly ease my use of excel for a collaborative presentation.
> > > > > Any help will be appreciated. These community boards are awesome!

>
> > > > > Best,
> > > > > Keith



 
Reply With Quote
 
=?Utf-8?B?S2VpdGgtTkI=?=
Guest
Posts: n/a
 
      27th Sep 2007
Dan,
I made the change and now get the following error:

Run time error '9'

subscript out of range.


VBA is awesome just painful sometimes.

Any help you can offer will be greatly appreciated.

Best,
Keith




"dan dungan" wrote:

> Hi Keith,
>
> When I tested this the error was "Named argument not found".
>
> Try changing
>
> Application.Goto Range:=Worksheets("Detail1") _
> > > .Range("A1352"), Scroll:=True

>
> to
>
> Application.Goto Reference:=Worksheets("Detail1") _
> > > .Range("A1352"), Scroll:=True

>
> Dan
>
> On Sep 27, 7:36 am, Keith-NB <Keit...@discussions.microsoft.com>
> wrote:
> > Dan, Team,
> > I did try the code below. It ran but came back with an error of something
> > along the line of "invalid outside procedure", highlighting the A1352 text.
> >
> > Any thoughts on why that would be and what I need to do to debug?
> >
> > Thanks again to all for the assistance.
> >
> > Best,
> > Keith
> >
> > "dan dungan" wrote:
> > > Hi Keith,

> >
> > > Did you try?:

> >
> > > Private Sub CommandButton1_Click()
> > > Application.Goto Range:=Worksheets("Detail1") _
> > > .Range("A1352"), Scroll:=True
> > > End Sub

> >
> > > Dan

> >
> > > On Sep 26, 1:32 pm, Keith-NB <Keit...@discussions.microsoft.com>
> > > wrote:
> > > > Tom, thanks!

> >
> > > > Just one last super-newbie thing. Where do I put that?

> >
> > > > I can place the button, and then right click to "view code", select the
> > > > button and click, and get this:

> >
> > > > Private Sub CommandButton1_Click()

> >
> > > > End Sub

> >
> > > > Everything I try from there doesn't work. Sorry for the super newbie but
> > > > everyone starts somewhere. Again, I dug around but didn't find the answer (I
> > > > tried a bunch but none worked).

> >
> > > > Thanks!

> >
> > > > "Tom Ogilvy" wrote:
> > > > > Application.Goto Range:=Worksheets("Detail1") _
> > > > > .Range("A1352"), Scroll:=True

> >
> > > > > would be in the click event of the button. Just change the details of the
> > > > > location to go to for each of the other.

> >
> > > > > --
> > > > > Regards,
> > > > > Tom Ogilvy

> >
> > > > > "Keith-NB" wrote:

> >
> > > > > > I dug around but didn't find this issue (although likely basic). I'm no VBA
> > > > > > programmer so step by step help would be appreciated.

> >
> > > > > > I have a multi-sheet workbook. "Summary", "Detail1", "Detail2".

> >
> > > > > > In the summary sheet, I would like to have three buttons:
> > > > > > 1. When pressed would move the user to view "Detail1" with cell A1 in the
> > > > > > upper left corner.
> > > > > > 2. When pressed would move the user to view "Detail1" with cell A1352 in
> > > > > > the upper left corner.
> > > > > > 3. When pressed would move the user to view "Detail2" with cell CC1219 in
> > > > > > the upper left corner.

> >
> > > > > > This would greatly ease my use of excel for a collaborative presentation.
> > > > > > Any help will be appreciated. These community boards are awesome!

> >
> > > > > > Best,
> > > > > > Keith

>
>
>

 
Reply With Quote
 
dan dungan
Guest
Posts: n/a
 
      27th Sep 2007
Keith,

Please copy the complete procedure here and let me know which line is
highlighted when it returns an error.

Dan

On Sep 27, 10:09 am, Keith-NB <Keit...@discussions.microsoft.com>
wrote:
> Dan,
> I made the change and now get the following error:
>
> Run time error '9'
>
> subscript out of range.
>
> VBA is awesome just painful sometimes.
>
> Any help you can offer will be greatly appreciated.
>
> Best,
> Keith
>
> "dan dungan" wrote:
> > Hi Keith,

>
> > When I tested this the error was "Named argument not found".

>
> > Try changing

>
> > Application.Goto Range:=Worksheets("Detail1") _
> > > > .Range("A1352"), Scroll:=True

>
> > to

>
> > Application.Goto Reference:=Worksheets("Detail1") _
> > > > .Range("A1352"), Scroll:=True

>
> > Dan

>
> > On Sep 27, 7:36 am, Keith-NB <Keit...@discussions.microsoft.com>
> > wrote:
> > > Dan, Team,
> > > I did try the code below. It ran but came back with an error of something
> > > along the line of "invalid outside procedure", highlighting the A1352 text.

>
> > > Any thoughts on why that would be and what I need to do to debug?

>
> > > Thanks again to all for the assistance.

>
> > > Best,
> > > Keith

>
> > > "dan dungan" wrote:
> > > > Hi Keith,

>
> > > > Did you try?:

>
> > > > Private Sub CommandButton1_Click()
> > > > Application.Goto Range:=Worksheets("Detail1") _
> > > > .Range("A1352"), Scroll:=True
> > > > End Sub

>
> > > > Dan

>
> > > > On Sep 26, 1:32 pm, Keith-NB <Keit...@discussions.microsoft.com>
> > > > wrote:
> > > > > Tom, thanks!

>
> > > > > Just one last super-newbie thing. Where do I put that?

>
> > > > > I can place the button, and then right click to "view code", select the
> > > > > button and click, and get this:

>
> > > > > Private Sub CommandButton1_Click()

>
> > > > > End Sub

>
> > > > > Everything I try from there doesn't work. Sorry for the super newbie but
> > > > > everyone starts somewhere. Again, I dug around but didn't find the answer (I
> > > > > tried a bunch but none worked).

>
> > > > > Thanks!

>
> > > > > "Tom Ogilvy" wrote:
> > > > > > Application.Goto Range:=Worksheets("Detail1") _
> > > > > > .Range("A1352"), Scroll:=True

>
> > > > > > would be in the click event of the button. Just change the details of the
> > > > > > location to go to for each of the other.

>
> > > > > > --
> > > > > > Regards,
> > > > > > Tom Ogilvy

>
> > > > > > "Keith-NB" wrote:

>
> > > > > > > I dug around but didn't find this issue (although likely basic). I'm no VBA
> > > > > > > programmer so step by step help would be appreciated.

>
> > > > > > > I have a multi-sheet workbook. "Summary", "Detail1", "Detail2".

>
> > > > > > > In the summary sheet, I would like to have three buttons:
> > > > > > > 1. When pressed would move the user to view "Detail1" with cell A1 in the
> > > > > > > upper left corner.
> > > > > > > 2. When pressed would move the user to view "Detail1" with cell A1352 in
> > > > > > > the upper left corner.
> > > > > > > 3. When pressed would move the user to view "Detail2" with cell CC1219 in
> > > > > > > the upper left corner.

>
> > > > > > > This would greatly ease my use of excel for a collaborative presentation.
> > > > > > > Any help will be appreciated. These community boards are awesome!

>
> > > > > > > Best,
> > > > > > > Keith



 
Reply With Quote
 
=?Utf-8?B?S2VpdGgtTkI=?=
Guest
Posts: n/a
 
      27th Sep 2007
Dan,
Here it is:
Private Sub CommandButton1_Click()
Application.Goto Reference:=Worksheets("Detail1") _
.Range("A1352"), Scroll:=True

End Sub

Pretty much exactly how it looks on the screen.

From A in Application through E in True is highlighted in the error message.

Thanks for your help with this.

Best,
Keith



"dan dungan" wrote:

> Keith,
>
> Please copy the complete procedure here and let me know which line is
> highlighted when it returns an error.
>
> Dan
>
> On Sep 27, 10:09 am, Keith-NB <Keit...@discussions.microsoft.com>
> wrote:
> > Dan,
> > I made the change and now get the following error:
> >
> > Run time error '9'
> >
> > subscript out of range.
> >
> > VBA is awesome just painful sometimes.
> >
> > Any help you can offer will be greatly appreciated.
> >
> > Best,
> > Keith
> >
> > "dan dungan" wrote:
> > > Hi Keith,

> >
> > > When I tested this the error was "Named argument not found".

> >
> > > Try changing

> >
> > > Application.Goto Range:=Worksheets("Detail1") _
> > > > > .Range("A1352"), Scroll:=True

> >
> > > to

> >
> > > Application.Goto Reference:=Worksheets("Detail1") _
> > > > > .Range("A1352"), Scroll:=True

> >
> > > Dan

> >
> > > On Sep 27, 7:36 am, Keith-NB <Keit...@discussions.microsoft.com>
> > > wrote:
> > > > Dan, Team,
> > > > I did try the code below. It ran but came back with an error of something
> > > > along the line of "invalid outside procedure", highlighting the A1352 text.

> >
> > > > Any thoughts on why that would be and what I need to do to debug?

> >
> > > > Thanks again to all for the assistance.

> >
> > > > Best,
> > > > Keith

> >
> > > > "dan dungan" wrote:
> > > > > Hi Keith,

> >
> > > > > Did you try?:

> >
> > > > > Private Sub CommandButton1_Click()
> > > > > Application.Goto Range:=Worksheets("Detail1") _
> > > > > .Range("A1352"), Scroll:=True
> > > > > End Sub

> >
> > > > > Dan

> >
> > > > > On Sep 26, 1:32 pm, Keith-NB <Keit...@discussions.microsoft.com>
> > > > > wrote:
> > > > > > Tom, thanks!

> >
> > > > > > Just one last super-newbie thing. Where do I put that?

> >
> > > > > > I can place the button, and then right click to "view code", select the
> > > > > > button and click, and get this:

> >
> > > > > > Private Sub CommandButton1_Click()

> >
> > > > > > End Sub

> >
> > > > > > Everything I try from there doesn't work. Sorry for the super newbie but
> > > > > > everyone starts somewhere. Again, I dug around but didn't find the answer (I
> > > > > > tried a bunch but none worked).

> >
> > > > > > Thanks!

> >
> > > > > > "Tom Ogilvy" wrote:
> > > > > > > Application.Goto Range:=Worksheets("Detail1") _
> > > > > > > .Range("A1352"), Scroll:=True

> >
> > > > > > > would be in the click event of the button. Just change the details of the
> > > > > > > location to go to for each of the other.

> >
> > > > > > > --
> > > > > > > Regards,
> > > > > > > Tom Ogilvy

> >
> > > > > > > "Keith-NB" wrote:

> >
> > > > > > > > I dug around but didn't find this issue (although likely basic). I'm no VBA
> > > > > > > > programmer so step by step help would be appreciated.

> >
> > > > > > > > I have a multi-sheet workbook. "Summary", "Detail1", "Detail2".

> >
> > > > > > > > In the summary sheet, I would like to have three buttons:
> > > > > > > > 1. When pressed would move the user to view "Detail1" with cell A1 in the
> > > > > > > > upper left corner.
> > > > > > > > 2. When pressed would move the user to view "Detail1" with cell A1352 in
> > > > > > > > the upper left corner.
> > > > > > > > 3. When pressed would move the user to view "Detail2" with cell CC1219 in
> > > > > > > > the upper left corner.

> >
> > > > > > > > This would greatly ease my use of excel for a collaborative presentation.
> > > > > > > > Any help will be appreciated. These community boards are awesome!

> >
> > > > > > > > Best,
> > > > > > > > Keith

>
>
>

 
Reply With Quote
 
dan dungan
Guest
Posts: n/a
 
      27th Sep 2007
Hi Keith,

The procedure works when I try it using Excel 2000 on Windows XP
professional.

What Excel version and operating system are you using?

Chip Pearson says, "This error typically occurs when you are
attempting to retrieve, by name, an item from a collection, and no
item by that name exists. For example, the following code will raise
an error 9 if there is no sheet named 'Sheet4'.

MsgBox Worksheets("Sheet4").Name"

Dan


On Sep 27, 12:24 pm, Keith-NB <Keit...@discussions.microsoft.com>
wrote:
> Dan,
> Here it is:
> Private Sub CommandButton1_Click()
> Application.Goto Reference:=Worksheets("Detail1") _
> .Range("A1352"), Scroll:=True
>
> End Sub
>
> Pretty much exactly how it looks on the screen.
>
> From A in Application through E in True is highlighted in the error message.
>
> Thanks for your help with this.
>
> Best,
> Keith
>
> "dan dungan" wrote:
> > Keith,

>
> > Please copy the complete procedure here and let me know which line is
> > highlighted when it returns an error.

>
> > Dan

>
> > On Sep 27, 10:09 am, Keith-NB <Keit...@discussions.microsoft.com>
> > wrote:
> > > Dan,
> > > I made the change and now get the following error:

>
> > > Run time error '9'

>
> > > subscript out of range.

>
> > > VBA is awesome just painful sometimes.

>
> > > Any help you can offer will be greatly appreciated.

>
> > > Best,
> > > Keith

>
> > > "dan dungan" wrote:
> > > > Hi Keith,

>
> > > > When I tested this the error was "Named argument not found".

>
> > > > Try changing

>
> > > > Application.Goto Range:=Worksheets("Detail1") _
> > > > > > .Range("A1352"), Scroll:=True

>
> > > > to

>
> > > > Application.Goto Reference:=Worksheets("Detail1") _
> > > > > > .Range("A1352"), Scroll:=True

>
> > > > Dan

>
> > > > On Sep 27, 7:36 am, Keith-NB <Keit...@discussions.microsoft.com>
> > > > wrote:
> > > > > Dan, Team,
> > > > > I did try the code below. It ran but came back with an error of something
> > > > > along the line of "invalid outside procedure", highlighting the A1352 text.

>
> > > > > Any thoughts on why that would be and what I need to do to debug?

>
> > > > > Thanks again to all for the assistance.

>
> > > > > Best,
> > > > > Keith

>
> > > > > "dan dungan" wrote:
> > > > > > Hi Keith,

>
> > > > > > Did you try?:

>
> > > > > > Private Sub CommandButton1_Click()
> > > > > > Application.Goto Range:=Worksheets("Detail1") _
> > > > > > .Range("A1352"), Scroll:=True
> > > > > > End Sub

>
> > > > > > Dan

>
> > > > > > On Sep 26, 1:32 pm, Keith-NB <Keit...@discussions.microsoft.com>
> > > > > > wrote:
> > > > > > > Tom, thanks!

>
> > > > > > > Just one last super-newbie thing. Where do I put that?

>
> > > > > > > I can place the button, and then right click to "view code", select the
> > > > > > > button and click, and get this:

>
> > > > > > > Private Sub CommandButton1_Click()

>
> > > > > > > End Sub

>
> > > > > > > Everything I try from there doesn't work. Sorry for the super newbie but
> > > > > > > everyone starts somewhere. Again, I dug around but didn't find the answer (I
> > > > > > > tried a bunch but none worked).

>
> > > > > > > Thanks!

>
> > > > > > > "Tom Ogilvy" wrote:
> > > > > > > > Application.Goto Range:=Worksheets("Detail1") _
> > > > > > > > .Range("A1352"), Scroll:=True

>
> > > > > > > > would be in the click event of the button. Just change the details of the
> > > > > > > > location to go to for each of the other.

>
> > > > > > > > --
> > > > > > > > Regards,
> > > > > > > > Tom Ogilvy

>
> > > > > > > > "Keith-NB" wrote:

>
> > > > > > > > > I dug around but didn't find this issue (although likely basic). I'm no VBA
> > > > > > > > > programmer so step by step help would be appreciated.

>
> > > > > > > > > I have a multi-sheet workbook. "Summary", "Detail1", "Detail2".

>
> > > > > > > > > In the summary sheet, I would like to have three buttons:
> > > > > > > > > 1. When pressed would move the user to view "Detail1" with cell A1 in the
> > > > > > > > > upper left corner.
> > > > > > > > > 2. When pressed would move the user to view "Detail1" with cell A1352 in
> > > > > > > > > the upper left corner.
> > > > > > > > > 3. When pressed would move the user to view "Detail2" with cell CC1219 in
> > > > > > > > > the upper left corner.

>
> > > > > > > > > This would greatly ease my use of excel for a collaborative presentation.
> > > > > > > > > Any help will be appreciated. These community boards are awesome!

>
> > > > > > > > > Best,
> > > > > > > > > Keith



 
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
Code for a button to change cell location Michael B Microsoft Excel Misc 1 30th Nov 2007 04:30 PM
Button to Change Form View =?Utf-8?B?VGhpcyBHdXk=?= Microsoft Access Forms 1 17th Jul 2007 10:38 PM
Button to Change Form View? Bill Microsoft Access Forms 0 30th Apr 2007 04:25 PM
Button to Change Form View? Bill Microsoft Access Database Table Design 1 30th Apr 2007 04:24 PM
Change button view for toolbars in Win Explorer David Peters Windows XP Customization 0 10th Mar 2006 10:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:32 PM.