View Full Version : excel vba to autofit row after cell update
trevb
11-05-2009, 04:56 AM
Hi, can anyone help please....basically I have data updated (formula) in column G dependant on what is entered in column C so need to autofit the row that has changed in rows 5 to 95.
Any help greatly appreciated.
nst1107
11-05-2009, 09:01 AM
How about something along the lines of:Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("G5:G95")) Is Nothing Then Exit Sub
Columns("G").AutoFit
End Sub
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.