ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how do i find the last cell (https://www.excelbanter.com/excel-discussion-misc-queries/96753-how-do-i-find-last-cell.html)

sedonovan

how do i find the last cell
 
hi there,

I have a sheet which has a formula in 6 columns and 300 rows. To make my
macro I need to select the last cell which is complete (not necessarily just
has the formula in). As this will vary each time the macro is run, is there a
way of finding this?

Many thanks,
Suzie

Stefi

how do i find the last cell
 
Cells.Find(What:="*", _
After:=Range("A1"), _
LookAt:=xlPart, _
LookIn:=xlValues, _
SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious, _
MatchCase:=False).Activate
Regards,
Stefi

€˛sedonovan€¯ ezt Ć*rta:

hi there,

I have a sheet which has a formula in 6 columns and 300 rows. To make my
macro I need to select the last cell which is complete (not necessarily just
has the formula in). As this will vary each time the macro is run, is there a
way of finding this?

Many thanks,
Suzie



All times are GMT +1. The time now is 04:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com