Hello All,
I am really new to VBA and need your help.
I am trying to use SelectionChange to click on a cell and then use vlookup to show contents of an adjacent cell - to do this I made a reference to the selection address in the worksheet that then runs the vlookup from the worksheet--the code below works, but I cannot stops the screen flicker even using the screenupdating=false, so I think I need to put eh vlookup in the VBA itself?
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.ScreenUpdating = False
[AB2] = Selection.Address
Application.ScreenUpdating = True
End Sub
""'in cell E6 on the wsheet I have =VLOOKUP($AB$2,lookup,3,FALSE)
any help on this is much appreciated
I am really new to VBA and need your help.
I am trying to use SelectionChange to click on a cell and then use vlookup to show contents of an adjacent cell - to do this I made a reference to the selection address in the worksheet that then runs the vlookup from the worksheet--the code below works, but I cannot stops the screen flicker even using the screenupdating=false, so I think I need to put eh vlookup in the VBA itself?
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.ScreenUpdating = False
[AB2] = Selection.Address
Application.ScreenUpdating = True
End Sub
""'in cell E6 on the wsheet I have =VLOOKUP($AB$2,lookup,3,FALSE)
any help on this is much appreciated