Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub PutA()
Dim rng As Range, cell As Range Set rng = Application.Intersect( _ Range("I2:I65536"), ActiveSheet.UsedRange) If Not rng Is Nothing Then For Each cell In rng.Cells If Len(cell.Value) = 0 Then Cells(cell.Row, "A").Value = "a" End If Next cell End If End Sub "Randy Reese" wrote in message link.net... I need code that if column I ,starting with row 2 (with unknown number of rows) is blank, then puts an a in column A. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Create Pivot Table Data with Column "Sum" rather than "count" defa | Excel Discussion (Misc queries) | |||
Auto Filter - how to collapse "non-blank" cells in a column? | Excel Discussion (Misc queries) | |||
How do I change the column heading in Excel to display "A" "B" "C | New Users to Excel | |||
how can I count if column A="active" and column E="Job" in a list? | Excel Worksheet Functions | |||
Removing "Blank Cells" from a column | Excel Worksheet Functions |