Indentify hidden rows & columns

R J Solanki

New Member
Joined
Jun 22, 2011
Messages
44
Hi,
Is there any way to find out how many & which rows & columns are hidden

Thanks in advance
 
The problem is the assumption that UsedRange starts in cell A1 (which of course is usually the case). I think it could be overcome by swapping the red for the blue.
Rich (BB code):
Set rngBlankCol = Range("A1").Offset(...
Set rngBlankCol = rngUsed.Cells(1, 1).Offset(...
 
Set rngBlankRow = Range("A1").Offset(...
Set rngBlankRow = rngUsed.Cells(1, 1).Offset(...

Oh - good catch! :bow: Actually, I just did:

Rich (BB code):
    Set rngBlankCol = rngUsed.Range("A1").Offset(, rngUsed.Columns.Count + 2).Resize(, 1).EntireColumn
...    
    Set rngBlankRow = rngUsed.Range("A1").Offset(rngUsed.Rows.Count + 2).Resize(1).EntireRow


Yes, that does appear to be the case. Silly of me to assume rows would behave the same as columns! :eeek:

Budge over wouldja? I'm sittin' beside ya, cuz I'm in the same boat.
 
Last edited:
Upvote 0

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Wellll ... Excel is kind of row-centric, right? Autofilter only works in one direction, SUBTOTAL ignores hidden rows but not hidden columns, and there are some other examples that don't come to mind.
 
Upvote 0
Wellll ... Excel is kind of row-centric, right?
Perhaps rows have more influence through sheer weight of numbers? :biggrin:

Budge over wouldja? I'm sittin' beside ya, cuz I'm in the same boat.
No problem, I spend plenty of time here in the dunce's corner so I've made sure it is plenty roomy & comfy. :cool:
 
Upvote 0

Forum statistics

Threads
1,225,156
Messages
6,183,222
Members
453,152
Latest member
ChrisMd

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top