vengal1987
New Member
Hi Team,
I am working on macro, where i need a msg box to be populated with a value from an activecell.
and the activecell will be change everytime.
for e.g.
I have some numbers say 1-10 and i need that numbers to populate in my msg box from
1-10 each number.
As of now i have below msg box VBA code.
[pre]
[/pre]
but the above code giving me the value only for one cell, & i want it to work till complete my loop.
Kindly help.
I am working on macro, where i need a msg box to be populated with a value from an activecell.
and the activecell will be change everytime.
for e.g.
I have some numbers say 1-10 and i need that numbers to populate in my msg box from
1-10 each number.
As of now i have below msg box VBA code.
[pre]
Code:
Dim a As Integer
Range("A1").Select
a = 2
While (Range("A" & a).Value <> "")
MsgBox (ActiveCell.Offset(0, 4).Value)
Wend
a = a + 1
but the above code giving me the value only for one cell, & i want it to work till complete my loop.
Kindly help.