Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Shawn Lopez   on Dec 21 In MS Office Category.

  
Question Answered By: Sophie Williamson   on Dec 21

Excel files don't have an end  of file  as such. The contents are stored in a
complex file format, where the different formulas, values, etc, are
scattered through the file.

Is it more that you want to find  the bottom row in a sheet? If so:

Call Cells(Rows.Count, "A").End(xlUp).Select

will select the bottom A cell  that has a value in it. (Change the column if
A can't be relied on to always have something in it.) You can grab the
bottom row number  in a variable if you need to. e.g.

Dim Bottom As Long
Bottom = Cells(Rows.Count, "A").End(xlUp).Row
Call MsgBox(Bottom)

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on End of File (Excel File) - VBA Or get search suggestion and latest updates.


Tagged: