ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Goto next empty cell in a range (https://www.excelbanter.com/excel-programming/282626-goto-next-empty-cell-range.html)

Keith Robinson

Goto next empty cell in a range
 
Can any one help me with a macro/code that will make the
next empty cell in a named rage become the active cell

Don Guillett[_4_]

Goto next empty cell in a range
 
try

Sub findnextblank()
Application.Goto [findrng].Find("", after:=ActiveCell)
End Sub

--
Don Guillett
SalesAid Software

"Keith Robinson" wrote in message
...
Can any one help me with a macro/code that will make the
next empty cell in a named rage become the active cell




RADO[_3_]

Goto next empty cell in a range
 
a couple of ways

Range("MyRange").End(xlDown).Offset(1).Activate

or


Dim c As Range
Set c = Range("MyRange").Cells(1)
Do Until c.Value = Empty
Set c = c.Offset(1)
Loop
c.Activate


Cheers,
RADO


"Keith Robinson" wrote in message
...
Can any one help me with a macro/code that will make the
next empty cell in a named rage become the active cell





All times are GMT +1. The time now is 02:58 PM.

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