last row
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 VBA Training and help » Last Row

Last Row

resolvedResolved · Low Priority · Version 2003

replyReply Thu 5 Feb 2009, 17:05Delegate Okechi said...

Okechi has attended:
Excel VBA Intro Intermediate course
Excel VBA Advanced course

Last Row

What VBA code do you use to find the last non-zero cell in either a row or a column of a list

For upcoming training course dates see: Pricing & availability

replyReply Thu 26 Mar 2009, 15:40Delegate Phil said...

RE: Last Row


try in your VBA code:

Range("A1").Select
Selection.End(xlDown).Select
Range("A1").Select
Selection.End(xlToRight).Select

Modify the cell references to match whatever yours requires.

regards

Phil

 

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

Excel tip:

Creating custom lists

In Excel if you type in January in a cell, you can then copy this cell to replicate Febraury, MArch, April etc.

This list has come from Tools- options and Custom lists.

Therefore to save time and create your own list you can click on New (in Tools and custom list tab) and type out the lsit that you want copied quickly.

All you have to do is then type in the 1st word and you will be able to copy the rest of the list quickly.

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