The Resize property enables you to change the size of a range based on the location of the active cell.
You can create a new range as you need it.
For Example
Sub rngresize()
Set Rng = Range("B1:B16").Find(What:="0", LookAt:=xlWhole, LookIn:=xlValues)
Rng.Offset(, -1).Resize(, 2).Interior.ColorIndex = 15
End Sub
https://docs.google.com/file/d/0B23eJ2xd9ODySGNBdEhITWNKeHc/edit?usp=sharing
No comments:
Post a Comment