I need to create a Macro that only works on cells that I have selected.
I need to execute the below code for only cells that I have selected and not a range since the formatting will change frequently. Below is my code:
Range("B2").Select
ActiveCell.FormulaR1C1 = _
"=XLOOKUP(RC[9],'[Region Name and Numbers.xlsx]Region Store'!C2,'[Region Name and Numbers.xlsx]Region Store'!C1,0,0)"
Range("B2").Select
Selection.AutoFill Destination:=Range("B2:B991")
Range("B2:B991").Select
Selection.Copy
Range("B2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveWindow.SmallScroll Down:=0
Range("B2").Select
End Sub
Something like this?