Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Steph wrote:
Hi. I have a variable defined as below: var3 = Cells(ActiveCell.Row, "D").Value How can I convert var3 to be (in laymans terms) ActiveCell.Row, "D" through BB xlleft So if active row is 3, var 3 might be D3:G3, if G was the last data point and H and to the right was blank. Thanks! addr = Cells(ActiveCell.row, "IV").End(xlToLeft).Column Set var3 = Range(Cells(ActiveCell.row, "D"), Cells(ActiveCell.row, addr)) MsgBox var3.Address Alan Beban |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Variable range in VB | Excel Discussion (Misc queries) | |||
setting a range variable equal to the value of a string variable | Excel Programming | |||
variable range: l just can't get there! | Excel Programming | |||
Variable Range | Excel Programming | |||
Problem trying to us a range variable as an array variable | Excel Programming |