last row

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

TrustPilot

starstarstarstarstar Excellent

  • Home
  • Courses
  • Promotions
  • Schedule
  • Formats
  • Our Clients

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Last Row

Last Row

resolvedResolved · Low Priority · Version 2003

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

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


 

Excel tip:

Copying the same value, label or formula quickly into a range of selected cells.

Select your range of cells. Type the value, label or formula that you want to appear in all the selected cells and then press Ctrl+Enter.

View all Excel hints and tips


Server loaded in 0.07 secs.