Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Hide rows and prevent unhiding

I was wondering if there is a way to hide rows so that they can only
be unhidden using VBA using something like veryhidden or something
like that?

I am using the top row of my sheet to create custom views by hiding/
unhiding columns. I wold like to either hide this top row or somehow
make it read only without protecting the sheet.

This data is not confidential so I do not mind others being able to
read it but I don't want them to be able to change them and mess up my
layout.

It seems that if I set hidden equal to true in VBA it hides the row
and unhiding by selecting the row and clicking unhide does not unhide
the row. However, resizing the rows can bring the row back.

Is there someway to detect if a resize occurs?

Thanks,
David

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Hide rows and prevent unhiding

The only solution that I can think of without using protection would be to
hide the Column and Row headings for that sheet (Tools - Options - View -
Uncheck "Row and Column Headers"). A little drastic but it would work.
--
HTH...

Jim Thomlinson


" wrote:

I was wondering if there is a way to hide rows so that they can only
be unhidden using VBA using something like veryhidden or something
like that?

I am using the top row of my sheet to create custom views by hiding/
unhiding columns. I wold like to either hide this top row or somehow
make it read only without protecting the sheet.

This data is not confidential so I do not mind others being able to
read it but I don't want them to be able to change them and mess up my
layout.

It seems that if I set hidden equal to true in VBA it hides the row
and unhiding by selecting the row and clicking unhide does not unhide
the row. However, resizing the rows can bring the row back.

Is there someway to detect if a resize occurs?

Thanks,
David


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 417
Default Hide rows and prevent unhiding

Add a 2nd worksheet ("Views") right after the worksheet with the data
("Data"). Put the view settings on the "View" worksheet, then hide it
(and protect it, if you think you need to). The only problem might be if
the user tries to delete rows or columns on the "Data" worksheet (maybe
have a change event macro to catch this?).
--
Regards,
Bill Renaud



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
Unhiding Rows Struggling of Essex Excel Discussion (Misc queries) 7 March 7th 10 12:53 PM
Prevent unhiding columns EvvLittleGiant Excel Discussion (Misc queries) 1 June 16th 09 07:58 PM
Unhiding rows John Excel Discussion (Misc queries) 1 February 11th 09 08:06 PM
How do I prevent hidden rows from unhiding when resizing row ht? posdude Excel Discussion (Misc queries) 0 September 20th 06 05:18 PM
How to Prevent User from Unhiding Sheet Bruce B[_2_] Excel Programming 4 September 17th 03 10:01 AM


All times are GMT +1. The time now is 05:53 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"