Issue a warning if rows are unhidden (Prank)

struf

Board Regular
Joined
Jul 2, 2002
Messages
107
Is it possible to put a "warning" comment on some hidden rows so if they are unhidden, it pops up states that they should remain hidden. Its more of a friendly joke to a colleague who has this thing about hidden columns. If I broke etiquette by placing this in the questions instead of forum, i apologize.
Any suggestions are appreciated.

later

struf
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Re: Issue a warning if rows are unhidden

If you had not actually stated that it was intended as a joke, then this would be the right place...

Anyway I don't see any harm. A mod might move it to the lounge though..


You could do some code like

Rich (BB code):
For i = 2 to 10 'From row 2 to row 10
If rows(i).Hidden = False Then
Msgbox "Dude, these rows are supposed to be hidden"
Exit For
End If
Next i
 
Last edited by a moderator:
Re: Issue a warning if rows are unhidden

many thanks. I will use the lounge movign forward on requests like this.
 
Re: Issue a warning if rows are unhidden

Are there any worksheet events that capture the unhiding of rows? At the point you click unhide you won't change the sheet or selection, the sheet doesn't recalculate. I'm probably being a bit slow but I'm not convinced that this would work.

Would be interested to hear otherwise.

Nick
 
Re: Issue a warning if rows are unhidden

if you have a subtotal formula somewhere referring to the hidden rows then a calculate event will be triggered.
 

Forum statistics

Threads
1,223,749
Messages
6,174,280
Members
452,554
Latest member
Louis1225

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