Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a way to see if a certain worksheet is active in a workbook?
If it is active continue with code. If it is not active end. this is what I got but it allows the code to keep going without the "Current Month" worksheet being active. If Worksheets("Current Month").Visible = False Then End Else TIA Peter |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If ActiveSheet.Name = "Current Month" Then
regards reklamo "Looping through" wrote: Is there a way to see if a certain worksheet is active in a workbook? If it is active continue with code. If it is not active end. this is what I got but it allows the code to keep going without the "Current Month" worksheet being active. If Worksheets("Current Month").Visible = False Then End Else TIA Peter |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use the ActiveSheet object to refer to whatever sheet is active:
If ActiveSheet.Name = "Current Month" Then 'do something Hope this helps, Hutch "Looping through" wrote: Is there a way to see if a certain worksheet is active in a workbook? If it is active continue with code. If it is not active end. this is what I got but it allows the code to keep going without the "Current Month" worksheet being active. If Worksheets("Current Month").Visible = False Then End Else TIA Peter |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi
probably more than one way to do this but... If ActiveSheet.Name < "CurrentMonth" Then exit sub Else runmorecode End If regards FSt1 "Looping through" wrote: Is there a way to see if a certain worksheet is active in a workbook? If it is active continue with code. If it is not active end. this is what I got but it allows the code to keep going without the "Current Month" worksheet being active. If Worksheets("Current Month").Visible = False Then End Else TIA Peter |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try something like
If ActiveSheet.Name = "Current Month" Then ' Current Month is active Else ' Current Month is not active End If -- Cordially, Chip Pearson Microsoft Most Valuable Professional Excel Product Group Pearson Software Consulting, LLC www.cpearson.com (email on web site) "Looping through" wrote in message ... Is there a way to see if a certain worksheet is active in a workbook? If it is active continue with code. If it is not active end. this is what I got but it allows the code to keep going without the "Current Month" worksheet being active. If Worksheets("Current Month").Visible = False Then End Else TIA Peter |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
automatically appending newly added data on worksheet to a master list worksheet | Links and Linking in Excel | |||
plot graph from multiple worksheet as embedded chart object on every worksheet | Excel Discussion (Misc queries) | |||
plot graph from multiple worksheet as embedded chart object on every worksheet | Excel Worksheet Functions | |||
Upload multiple text files into 1 excel worksheet + put the filename as the first column in the worksheet | Excel Worksheet Functions | |||
Attaching a JET database to an Excel Worksheet OR storing large binary data in a worksheet | Excel Programming |