Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / April 2008

Tip: Looking for answers? Try searching our database.

VB code for Active cell to the last cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CAPTGNVR - 20 Apr 2008 10:14 GMT
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
Rick Rothstein (MVP - VB) - 20 Apr 2008 10:23 GMT
BBB contains a String value so you have to concatenate it with other text.
Use this...

Range(BBB & ":K" & lastrow)

Rick

> DEAR ALL
>
[quoted text clipped - 11 lines]
>
> BRGDS/CAPTGNVR
CAPTGNVR - 20 Apr 2008 10:32 GMT
D/RICK

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

brgds/captgnvr

> BBB contains a String value so you have to concatenate it with other text.
> Use this...
[quoted text clipped - 18 lines]
> >
> > BRGDS/CAPTGNVR
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.