question on VB codes
It initializes a range object made up of the cells a3:a5,a7:a19,a22:a33.
Try this...
dim rng as range
dim myRng as rng
Set myRng=Me.Range("a3:a5,a7:a19,a22:a33")
for each rng in myRng
msgbox rng.Address & vbcrlf & rng.value
next rng
--
HTH...
Jim Thomlinson
"peyman" wrote:
hi,
Can anybody tell me what the following code does?
Set myRng=Me.Range("a3:a5,a7:a19,a22:a33")
thanks
|