Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Hidden rows loop

I have this little routine that works in Excel 2003. But I really don't
want to have to select this worksheet and move to it to use it. I have this
code running while I'm on another worskeet. Is there a way to check the
hidden status of the rows in one worksheet while you're in another
worksheet? (these are all in the same workbook)

Sub test()

Worksheets("Labor $").Select
Range("a7").Select

i = 1
Do
ActiveCell.Offset(1, 0).Select
Loop Until Rows(ActiveCell.Row).Hidden = False

End Sub


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Hidden rows loop


With Worksheets("Labor $")

RowCount = 7
Do
RowCount = RowCount + 1
Loop Until .Rows(RowCount).Hidden = False
End With
"Kent McPherson" wrote:

I have this little routine that works in Excel 2003. But I really don't
want to have to select this worksheet and move to it to use it. I have this
code running while I'm on another worskeet. Is there a way to check the
hidden status of the rows in one worksheet while you're in another
worksheet? (these are all in the same workbook)

Sub test()

Worksheets("Labor $").Select
Range("a7").Select

i = 1
Do
ActiveCell.Offset(1, 0).Select
Loop Until Rows(ActiveCell.Row).Hidden = False

End Sub



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
opening a group but keep hidden rows hidden MWL Excel Discussion (Misc queries) 0 February 17th 09 03:16 PM
Hidden rows columns won't stay hidden christie Excel Worksheet Functions 0 September 30th 08 05:44 PM
Rows hidden by Autofilter vs hidden by changing the Hidden property LEO@KCC Excel Programming 4 September 11th 07 10:14 AM
Formula or Code to keep Hidden Rows Hidden Carol Excel Worksheet Functions 6 May 1st 07 11:45 PM
I need my Hidden Rows to stay hidden when I print the sheet. Rosaliewoo Excel Discussion (Misc queries) 2 July 20th 06 07:51 PM


All times are GMT +1. The time now is 05:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"