Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, I'm trying to do a macro that will automaticly select the first blank
cell that will appear in a row, I have tried the following but it doesn't select the cell but my message box will give me the right cell adress for the empty cell. Sub A() Dim myCell As Range Dim NextEmpty As Range Set myCell = ActiveSheet.Range("c5") Do If myCell.Value = "" Then Set NextEmpty = myCell Exit Do Else Set myCell = myCell.Offset(0, 1) End If Loop MsgBox NextEmpty.Address End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I select the first blank cell | Excel Worksheet Functions | |||
Is there a formula to select the last non-blank cell in a list | Excel Discussion (Misc queries) | |||
How do I select & use contents of first non-blank cell in row? | Excel Worksheet Functions | |||
I want to select the first blank cell in column A | Excel Worksheet Functions | |||
Select blank cell | Excel Programming |