Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Pat Pat is offline
external usenet poster
 
Posts: 210
Default How to hide and lock all cells but A1?

I can write a macro that gets the last cell and figures out the ranges of
rows and columns that do not play but is there an easier way to do this?
Pat
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default How to hide and lock all cells but A1?

Are you looking for

Cells(1, 1).Locked = False
Rows("2:" & Rows.Count).Hidden = True
Range(Columns(2), Columns(Columns.Count)).EntireColumn.Hidden = True
ActiveSheet.Protect

If this post helps click Yes
---------------
Jacob Skaria


"Pat" wrote:

I can write a macro that gets the last cell and figures out the ranges of
rows and columns that do not play but is there an easier way to do this?
Pat

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/lock worksheets McChas Excel Worksheet Functions 4 January 7th 10 05:50 PM
Hide/lock cells? David Excel Programming 7 April 17th 06 02:39 PM
hide a column and lock it out Becky Excel Discussion (Misc queries) 2 May 27th 05 05:31 PM
Hide Formula (or Lock Cell) using VBA Aaron5 Excel Programming 2 January 6th 05 02:07 PM
Automatically lock cells and hide formulas Qaspec Excel Programming 4 December 14th 04 11:31 PM


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