Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Like?
myLastRow = Cells.Find("*", [A1], , , xlByRows, xlPrevious).Row-1 "Carlie" wrote: I am trying to wirte a macro to find and select a range based on the first and last row (minus one row) of data on a spreadheet Does anyone know how to incorporate myLastRow with minus 1 row? Thanks in advance. Range("A4").Select myLastRow = Cells.Find("*", [A1], , , xlByRows, xlPrevious).Row myLastColumn = Cells.Find("*", [A1], , , xlByColumns, xlPrevious).Column myLastCell = Cells(myLastRow, myLastColumn).Address -- Carlie ------------------------------------------------------------------------ Carlie's Profile: http://www.excelforum.com/member.php...o&userid=33377 View this thread: http://www.excelforum.com/showthread...hreadid=533503 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to Find the Minus Kilometre | Excel Discussion (Misc queries) | |||
CHANGE TRAILING MINUS TO BRACKETS OR PRECEEDING MINUS | Excel Discussion (Misc queries) | |||
Chart how to find lastrow? | Excel Programming | |||
How do I find and replace a number with a minus sign in front? | Excel Discussion (Misc queries) | |||
Go to lastrow using other column's lastrow | Excel Programming |