I have the following Dims
Dim PlayersStartAt As Integer Dim PlayersEndAt As Integer PlayersStartAt = 101 PlayersEndAt = PlayersStartAt + 50 Selection.AutoFill Destination:=Range("B & PlayersStartAt:B & PlayersEndAt"), Type:=xlFillDefault
and want to execute the following line of code.
It with great with
What is wrong with my syntax?
Range("B & PlayersStartAt:B & PlayersEndAt")
Range("B" & PlayersStartAt & ":B" & PlayersEndAt)
PlayersEndAt are variables. Anything that you put between quotes will be taken as a string 🙂