#1   Report Post  
Chris Hale
 
Posts: n/a
Default Command Button

I have a command button on Sheet 1. I want a user to go to Sheet 2 if value
in L4 = 0, Sheet 3 if value in L4 = 2, Sheet 4 if value in L4 = 4.

How do I do this?

THK in Advance
  #2   Report Post  
R.VENKATARAMAN
 
Posts: n/a
Default

try to introduce this code under command button code

If Sheet1.Range("L4") = 0 Then Sheet2.Activate
If Sheet1.Range("L4") = 2 Then Sheet3.Activate
If Sheet1.Range("L4") = 4 Then Sheet4.Activate

see whether you get what you want
====================

Chris Hale wrote in message
...
I have a command button on Sheet 1. I want a user to go to Sheet 2 if

value
in L4 = 0, Sheet 3 if value in L4 = 2, Sheet 4 if value in L4 = 4.

How do I do this?

THK in Advance





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



All times are GMT +1. The time now is 03:51 AM.

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"