Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
run macro although blinking cursor is active in an active cell bartman1980 Excel Programming 1 December 20th 07 11:29 AM
How to code: If active cell is B1, goto H17 when enter pressed GregBeam Excel Programming 2 November 26th 07 10:00 AM
referring to formula in a non active cell from active cell nickname Excel Discussion (Misc queries) 1 June 21st 07 12:11 PM
How to Add Rows From Active Cell with in a XLL Code Sheraz Excel Worksheet Functions 0 August 8th 06 01:17 PM
active a set of VBA code once the cell have data. norika Excel Programming 2 June 17th 05 09:35 AM


All times are GMT +1. The time now is 06:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"