Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default command button to move user to specific spot on different sheet


First sheet on my worksheet contains a protected instruction page.
Have a "help" commandbutton at the bottom of each subsequent page.

I would like, when the commandbutton is pressed, to take the user to
the specific portion of the instruction page. Basically:

when the help button is pressed on sheet 2, it takes the user to sheet
1 with row 15 at "the top"
when the help button is pressed on sheet 3, it takes the user to sheet
1 with row 37 at "the top"
when the help button is pressed on sheet 4, it takes the user to sheet
1 with row 59 at "the top"
and so on...

sheet 1 is protected, so i cannot (or can i?) select specific cells...

any help is much appreciated


--
grime
------------------------------------------------------------------------
grime's Profile: http://www.excelforum.com/member.php...o&userid=19227
View this thread: http://www.excelforum.com/showthread...hreadid=501072

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default command button to move user to specific spot on different sheet


Grime,

I also have an instruction sheet as the first sheet in the module I am
working on. This is what I used to jump from sheet to sheet.

Sheets("How-To").Select
Range("A1").Select

Of course you would use whatever cell is the "top" for each "Page" of
your help sheet, and as far as I have experienced, you can select a
cell if you (locked or unlocked) if you set up the protection that way.
I am not familiar with all versions of Excel, and I know that older
versions don't allow as many protection options. I am using Excel 2000,
and with that version when you pull up the protect sheet window there is
a list underneath where you can supply a password, and the first two
options are for selecting locked and unlocked cells. All you have to do
is make sure these are checked (which they are by default) and hey
presto bango, it should work fine.

Since Excel 2000 chooses the select both unlocked and locked cells as
default, I think that this is also true for older versions as well, but
to be honest I really don't know.

I hope this helped some.
Amber:)




grime Wrote:
First sheet on my worksheet contains a protected instruction page.
Have a "help" commandbutton at the bottom of each subsequent page.

I would like, when the commandbutton is pressed, to take the user to
the specific portion of the instruction page. Basically:

when the help button is pressed on sheet 2, it takes the user to sheet
1 with row 15 at "the top"
when the help button is pressed on sheet 3, it takes the user to sheet
1 with row 37 at "the top"
when the help button is pressed on sheet 4, it takes the user to sheet
1 with row 59 at "the top"
and so on...

sheet 1 is protected, so i cannot (or can i?) select specific cells...

any help is much appreciated



--
Amber_D_Laws
------------------------------------------------------------------------
Amber_D_Laws's Profile: http://www.excelforum.com/member.php...o&userid=30012
View this thread: http://www.excelforum.com/showthread...hreadid=501072

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default command button to move user to specific spot on different sheet


Here is my code:

Private Sub CommandButton1_Click()
Worksheets("Instructions").Range("B9").Select
End Sub

It gives me errors. Help!


--
grime
------------------------------------------------------------------------
grime's Profile: http://www.excelforum.com/member.php...o&userid=19227
View this thread: http://www.excelforum.com/showthread...hreadid=501072

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default command button to move user to specific spot on different sheet


Exactly what error is it giving you? And have you tried seperating the
two selections into two seperate lines...ie:

Private Sub CommandButton1_Click()
Worksheets("Instructions").Select
Range("B9").Select
End Sub

To be quite honest without knowing more, I don't think I can offer any
other suggestions.

Don't lose hope though. Dan Patterson helped me with one of these
little tricky things that took a week, but in the end, we got it to
work. :)

grime Wrote:
Here is my code:

Private Sub CommandButton1_Click()
Worksheets("Instructions").Range("B9").Select
End Sub

It gives me errors. Help!



--
Amber_D_Laws
------------------------------------------------------------------------
Amber_D_Laws's Profile: http://www.excelforum.com/member.php...o&userid=30012
View this thread: http://www.excelforum.com/showthread...hreadid=501072

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default command button to move user to specific spot on different sheet


I've tried it both ways... the error I am getting is:

Select method of Range class failed.

I am also using version 2000


--
grime
------------------------------------------------------------------------
grime's Profile: http://www.excelforum.com/member.php...o&userid=19227
View this thread: http://www.excelforum.com/showthread...hreadid=501072



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default command button to move user to specific spot on different sheet


Did you mannually enter the code, or did you record a macro to get the
code?


--
Amber_D_Laws
------------------------------------------------------------------------
Amber_D_Laws's Profile: http://www.excelforum.com/member.php...o&userid=30012
View this thread: http://www.excelforum.com/showthread...hreadid=501072

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
Move and reset valuse using a command Button Chris Excel Discussion (Misc queries) 0 December 29th 09 11:54 PM
command button to move data dummy Excel Worksheet Functions 3 December 5th 09 06:44 PM
Creating a "Next" button to move the user to the next sheet Rob Excel Discussion (Misc queries) 2 March 29th 09 12:14 PM
command button move worksheet from one workbook to another Qaspec Excel Programming 3 February 2nd 05 12:55 PM
command button in excel will move when print. [email protected] Excel Discussion (Misc queries) 1 December 29th 04 03:53 PM


All times are GMT +1. The time now is 11:30 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"