Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
I would like some help with getting a code to scroll through the sheet in my workbook and when it comes up to the first one with nothing in cell b1 to select that page. I know the long way but there has got to be a better way than having 150 ifs in a code Thanks Greg |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() For Each sh In Activeworkbook.Worksheets If sh.Range("B1").Value = "" Then sh.Select Exit For End If Next sh -- HTH RP (remove nothere from the email address if mailing direct) "Greg B" wrote in message ... Hi all, I would like some help with getting a code to scroll through the sheet in my workbook and when it comes up to the first one with nothing in cell b1 to select that page. I know the long way but there has got to be a better way than having 150 ifs in a code Thanks Greg |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
split post code (zip code) out of cell that includes full address | Excel Discussion (Misc queries) | |||
Drop Down/List w/Code and Definition, only code entered when selec | Excel Worksheet Functions | |||
How to make a button VBA code reference other VBA code subroutines??? | Excel Programming | |||
Create a newworksheet with VBA code and put VBA code in the new worksheet module | Excel Programming | |||
stubborn Excel crash when editing code with code, one solution | Excel Programming |