In Excel 2010, how can I make a row on a non-active sheet autofit when a cell in that row changes it's value due to a formula referencing the active sheet?

I have a formula in a cell on a non-active sheet.  It has a formula in it that gets it's data from the active sheet.  ie: ='Mysheet1'!A1
When I set up each sheet, I formatted the rows autofit.  When I enter text data in the referenced cell in the active sheet and that data is too long to fit in the cell, it makes the row taller so that all the text can be seen in the cell.  But when I go and look at the non-active sheet, I see that the row height has not changed to accommodate the text.

How can I make it do this?

Right now, I've got a work-around that is not optimal.  When I activate the sheet with the cell that contains the formula, I capture that sheet's Activate event and autofit the rows, but this has a flashing effect.  Even when I disable events, calcs and screen updating.  If it didn't clash, this would probably be ok.

How can I do this and not get that flashing effect?
cashonlyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ejgil HedegaardCommented:
A formula does not trigger autofit.
Use the worksheet calculate event on the formula sheet to do it.
The sheet does not have to be active, so no screen flashing.

Private Sub Worksheet_Calculate()
    Rows.AutoFit
End Sub

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Spreadsheets

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.