Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
What is the code for a makro to look for the first empty
cell in column A? |
#2
![]() |
|||
|
|||
![]()
This code will color the first empty cell in the range A1:A10 yellow. When
the empty cell is found, the routine exits. Sub FlagFirstEmpty() Dim Rng As Range For Each Rng In Range("A1:A10") If IsEmpty(Rng) = True Then Rng.Interior.ColorIndex = 6 Exit Sub End If Next End Sub ---- Regards, John Mansfield http://www.pdbook.com "esrei" wrote: What is the code for a makro to look for the first empty cell in column A? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I start a macro from a cell by using a formula | Excel Worksheet Functions | |||
Syntax for inferred cell references | Excel Worksheet Functions | |||
A Macro that will cut and paste to specific cell | Excel Discussion (Misc queries) | |||
show macro security setting in a cell | Excel Worksheet Functions | |||
Macro - - Automation | Excel Discussion (Misc queries) |