View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
dominicb[_79_] dominicb[_79_] is offline
external usenet poster
 
Posts: 1
Default VBA - Last Cell In A Row


God morning ajocius

As an alternative try this, which will find the last row (where you
state the row number - in this example, 4) and NextRow is the variable
name that the value is passed to:

NextRow = Application.WorksheetFunction.CountA(Range("4:4"))

HTH

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=391590