endxldown
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » End(xldown)

End(xldown)

resolvedResolved · Low Priority · Version Standard

replyReply Thu 13 Mar 2008, 16:31Delegate Ashish said...

Ashish has attended:
Excel VBA Intro Intermediate course

End(xldown)

If I have spaces or blanks in my data list End(xldown) will not work, how can I get this work (find the last row)with blank records at random points in my data?

For upcoming training course dates see: Pricing & availability

replyReply Fri 28 Mar 2008, 09:38Trainer Stephen said...

RE: End(xldown)

Hi ashish

Thank you for your question

If your table contains random blank records then the simplest approach is to use the current region property of the activecell object

The following code would select the surronding cells of cell b2, when this is a cell in the table

Range("b2").CurrentRegion.Select


Hope this is useful, if you have any further queries please do not hesitate to get back to me

Regards

Stephen

 

Please browse our web site to find out more about
excel+course and other Microsoft training courses.

Excel tip:

Outlining - Grouping rows or columns

Highlight want you want to group and press ALT + SHIFT + left cursor arrow

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard