Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
VB code for Active cell to the last cell
DEAR ALL
I get lastrow = ActiveCell.End(xlDown).Row and BBB = ActiveCell.Address(ROWABSOLUTE:=False, COLUMNABSOLUTE:=False) Range(BBB :K" & lastrow) does not work. What should be the code to select a range from active cell to the last row and till colum K? Can any one help me, pls. BRGDS/CAPTGNVR |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
VB code for Active cell to the last cell
BBB contains a String value so you have to concatenate it with other text.
Use this... Range(BBB & ":K" & lastrow) Rick "CAPTGNVR" wrote in message ... DEAR ALL I get lastrow = ActiveCell.End(xlDown).Row and BBB = ActiveCell.Address(ROWABSOLUTE:=False, COLUMNABSOLUTE:=False) Range(BBB :K" & lastrow) does not work. What should be the code to select a range from active cell to the last row and till colum K? Can any one help me, pls. BRGDS/CAPTGNVR |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
VB code for Active cell to the last cell
D/RICK
BINGO. Pretty quick response. Tried and working like a charm. Thank u. brgds/captgnvr "Rick Rothstein (MVP - VB)" wrote: BBB contains a String value so you have to concatenate it with other text. Use this... Range(BBB & ":K" & lastrow) Rick "CAPTGNVR" wrote in message ... DEAR ALL I get lastrow = ActiveCell.End(xlDown).Row and BBB = ActiveCell.Address(ROWABSOLUTE:=False, COLUMNABSOLUTE:=False) Range(BBB :K" & lastrow) does not work. What should be the code to select a range from active cell to the last row and till colum K? Can any one help me, pls. BRGDS/CAPTGNVR |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
run macro although blinking cursor is active in an active cell | Excel Programming | |||
How to code: If active cell is B1, goto H17 when enter pressed | Excel Programming | |||
referring to formula in a non active cell from active cell | Excel Discussion (Misc queries) | |||
How to Add Rows From Active Cell with in a XLL Code | Excel Worksheet Functions | |||
active a set of VBA code once the cell have data. | Excel Programming |