Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / September 2007

Tip: Looking for answers? Try searching our database.

Hide rows and prevent unhiding

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
david.j.winfield@gmail.com - 14 Sep 2007 00:21 GMT
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
Jim Thomlinson - 14 Sep 2007 00:36 GMT
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.
Signature

HTH...

Jim Thomlinson

> 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
[quoted text clipped - 16 lines]
> Thanks,
> David
Bill Renaud - 14 Sep 2007 05:07 GMT
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?).
Signature

Regards,
Bill Renaud

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.