LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default hiding all cells that dont have any text

Thanks Gary.

"Gary''s Student" wrote:

Here is a modification. It will hide everything to the right of your working
area and everything below your working area:

Sub MoreGeneralHideThem()
Dim nC As Long, nR As Long
Set r = ActiveSheet.UsedRange
nR = r.Rows.Count + r.Row
nC = r.Columns.Count + r.Column
Range(Cells(1, nC), Cells(1, Columns.Count)).EntireColumn.Hidden = True
Range("A" & nR & ":A" & Rows.Count).EntireRow.Hidden = True
End Sub

--
Gary''s Student - gsnu200905


"Misho" wrote:

Thanks Gary.

what if the data range changed in row or col is there any macro can hide it
when there is no test on it.

and can the macro be available for several files or shall I make it for each
file


"Gary''s Student" wrote:

If you assign a shortcut key to the following macro:

Sub HideThem()
Range(Cells(1, "F"), Cells(1, Columns.Count)).EntireColumn.Hidden = True
Range("A63:A" & Rows.Count).EntireRow.Hidden = True
End Sub

You can hide all with a single click.
--
Gary''s Student - gsnu200904


"Misho" wrote:

I have a worksheet that have text from A to E & form 1 to 62.

I usually select all the rows after my data then right click then Hide and
the same I do for col.

Is there a way that I can do it faster?



 
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
Temporarily Hiding Text on Repeat Cells in Column-1 AnnetteG Excel Discussion (Misc queries) 3 January 8th 09 02:32 AM
Kinda like a database - I cant believe others dont need to do th Bob Excel Discussion (Misc queries) 3 December 12th 08 03:02 PM
Dont want member number to repeat in the same column. TPkk Excel Discussion (Misc queries) 1 October 29th 06 09:21 PM
Text to speech buttons don´t go active atmon Excel Discussion (Misc queries) 0 July 4th 06 05:42 PM
How do I view cell text without it visually hiding other cells? ldmci Excel Discussion (Misc queries) 1 May 27th 05 04:12 PM


All times are GMT +1. The time now is 06:26 AM.

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"