Livin404
Well-known Member
- Joined
- Jan 7, 2019
- Messages
- 743
- Office Version
- 365
- 2019
- Platform
- Windows
Greeings I have a VBA that works perfectly fine.
I would like to insert something like
but not sure without ruining the first Macro. This addition piece will autofit the Column A.
Thank you very much indeed.
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Target, Columns("T")) Is Nothing Then
With Target
If .CountLarge = 1 Then
Select Case UCase(.Value)
Case "1 COP": .Offset(0, -10).Value = 2300
Case "2 COPS": .Offset(0, -10).Value = 4600
Case "3 COPS": .Offset(0, -10).Value = 6900
Case "4 COPS": .Offset(0, -10).Value = 9200
End Select
End If
End With
End If
End Sub
I would like to insert something like
Excel Formula:
Application.EnableEvents = False
Range("A1").EntireColumn.AutoFit
but not sure without ruining the first Macro. This addition piece will autofit the Column A.
Thank you very much indeed.