ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Autofit does not work when cell is updated automatically. (https://www.excelbanter.com/excel-discussion-misc-queries/131152-autofit-does-not-work-when-cell-updated-automatically.html)

SummerGuy

Autofit does not work when cell is updated automatically.
 
I have a list in Column A that, when I choose an item, I automatically update
information in Column B. I have selected autofit, but when Col B is updated
is wont autofit. If I select the same item from Col A again then it will. Not
good for the users!

Dave Peterson

Autofit does not work when cell is updated automatically.
 
A formula that changes won't make the size of the column change.

Maybe you could have an event macro that runs each times that worksheet
recalculates.

If you want to try that event macro, you can rightclick on the worksheet tab
that should have this behavior. Select view code and paste this in:

Option Explicit
Private Sub Worksheet_Calculate()
Me.Columns.AutoFit
End Sub


SummerGuy wrote:

I have a list in Column A that, when I choose an item, I automatically update
information in Column B. I have selected autofit, but when Col B is updated
is wont autofit. If I select the same item from Col A again then it will. Not
good for the users!


--

Dave Peterson

SummerGuy

Autofit does not work when cell is updated automatically.
 
Dave,

Excellent, I just changes the Columns to Rows for my needs. Thanks so much.

Jim

"Dave Peterson" wrote:

A formula that changes won't make the size of the column change.

Maybe you could have an event macro that runs each times that worksheet
recalculates.

If you want to try that event macro, you can rightclick on the worksheet tab
that should have this behavior. Select view code and paste this in:

Option Explicit
Private Sub Worksheet_Calculate()
Me.Columns.AutoFit
End Sub


SummerGuy wrote:

I have a list in Column A that, when I choose an item, I automatically update
information in Column B. I have selected autofit, but when Col B is updated
is wont autofit. If I select the same item from Col A again then it will. Not
good for the users!


--

Dave Peterson



All times are GMT +1. The time now is 07:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com