Hi there,
i am having trouble making my VBA code select the cells the way i wanted it to.
Here is what i wanted it to select
at once to fill down the selection leaving the parts in middle. But my rowcount being dynamic, i have used variables and my code looks like
this syntax is selecting everything from B2:AB3.
Now how can i tweak the syantax above to make use of my variables to select just the cells i wanted and not everything in between columns M and AB.
Any help is greatly appreciated, Thanks!
i am having trouble making my VBA code select the cells the way i wanted it to.
Here is what i wanted it to select
Code:
s2.Range("B2:M3,AB2:AB3").Select
Code:
s2.Range("B" & iLastRowS2 + 1 & ":M" & iLastRowS3, "AB" & iLastRowS2 + 1 & ":AB" & iLastRowS3).Select
Now how can i tweak the syantax above to make use of my variables to select just the cells i wanted and not everything in between columns M and AB.
Any help is greatly appreciated, Thanks!