ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Command Button (https://www.excelbanter.com/excel-discussion-misc-queries/12418-command-button.html)

Chris Hale

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

R.VENKATARAMAN

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







All times are GMT +1. The time now is 06:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com