Can I have a different VBA code that does waht this code is supposed to do.…
Jump to turn (9)
- 1Can I have a different VBA code that does waht this code is supposed to do. Unfo
- 2With this VBA code, Private Sub WorksheetChange(ByVal Target As Range) If Target
- 3The values derived from the code are to be sent into column 11. The lookup value
- 4I have put the revised line given ( .Range("K2:K" & lastRow).FormulaR1C1 = "=IF(
- 5The code does not work. If I use my original VLOOKUP formula and click on the ca
- 6The modified code did not work. I have given up on this and reverted to my origi
- 7will this code enable calculation for other sheets in the workbook
- 8In VBA code how will I calculate a specific sheet when it is opened
- 9can you please give me a list of all common application events tha should be tur
- User
Can I have a different VBA code that does waht this code is supposed to do. Unforntunately the code does not update values to column 11 when I enter a value in column1.
Private Sub Worksheet_Change(ByVal Target As Range) If Not Application.CalculationState = xlDone Then Exit Sub If Target.Column = 1 Then Application.EnableEvents = False Application.ScreenUpdating = False UpdateColumn11 Application.EnableEvents = True Application.ScreenUpdating = True
End If TimeStampSimple Target, "G2", "J", "mm/dd/yyyy hh:mm:ss", False End Sub
Sub UpdateColumn11() Dim lastRow As Long With Worksheets("PREQUEST") ' Find the last row with data lastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
' Fill in column 11 with the VLOOKUP results .Range("K2:K" & lastRow).FormulaR1C1 = "=IF(RC[-10]<>"",VLOOKUP(RC[-10],LIST!R2C1:R54C3,3,FALSE),"""")"
End With End Sub
- Assistant