macro to run when I hide or unhide rows in a group

I

IMcC

I need to keep a spreadsheet in manual recalc mode but would like it to
automatically recalc when rows in a group are hidden or unhidden.
 
D

Don Guillett

One way.
'============
Public rd
Sub ifrowhidechnage()
hr = Cells.Count
'MsgBox hr
vr = Cells.SpecialCells(xlCellTypeVisible).Count
'MsgBox vr
'msgBox rd
If hr - vr <> rd Then MsgBox "hi"
rd = hr - vr
End Sub
'========
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top