Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
xz
 
Posts: n/a
Default how 2 hide row if row in another sheet is hidden?

Hi to all!

I want to hide row #3 say, in worksheet 'a', if row #4 in worksheet
'b' is also hidden. And if its not hidden, I want the row in worksheet
'a' also to remain unhidden.

Not sure how to do this.... Thanks!

Jason Shohet

  #2   Report Post  
Posted to microsoft.public.excel.misc
Harj
 
Posts: n/a
Default how 2 hide row if row in another sheet is hidden?

Hi,

A simple code on selction change or sheet activate event would do the trick:-
Sheets("b").Rows(lIndex & ":" & lIndex).Hidden = Sheets("a").Rows(lIndex &
":" & lIndex).Hidden

Above code will change sheet b rows to match sheet a. You will nd to
impliment loop to go through all rows in sheet a.

regards

"xz" wrote:

Hi to all!

I want to hide row #3 say, in worksheet 'a', if row #4 in worksheet
'b' is also hidden. And if its not hidden, I want the row in worksheet
'a' also to remain unhidden.

Not sure how to do this.... Thanks!

Jason Shohet


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
Hide a sheet gavin Excel Discussion (Misc queries) 1 September 14th 05 06:40 PM
Hid rows in a hidden sheet. Ben Excel Discussion (Misc queries) 2 May 27th 05 02:37 PM
Sheet hidden and VeryHidden Marc Excel Discussion (Misc queries) 6 March 29th 05 12:33 AM
Can a macro format a hidden sheet? Robert Excel Discussion (Misc queries) 1 February 9th 05 06:13 PM
Naming & renaming a sheet tab Cgbilliar Excel Worksheet Functions 1 November 7th 04 05:57 PM


All times are GMT +1. The time now is 08:24 PM.

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"