VB code for Active cell to the last cell

C

CAPTGNVR

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
 
R

Rick Rothstein \(MVP - VB\)

BBB contains a String value so you have to concatenate it with other text.
Use this...

Range(BBB & ":K" & lastrow)

Rick
 
C

CAPTGNVR

D/RICK

BINGO. Pretty quick response. Tried and working like a charm. Thank u.

brgds/captgnvr
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top