Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi.
Can anyone tell me what is wrong with this code? I know I've used an IF statement in the past, but code fills in formula for all rows without IF statement. As soon as I add IF statement, stops working entirely. Thanks, in advance. Sub trynext() Sheets("Sheet3").Select LastRow = Cells(Rows.Count, 3).End(xlUp).Row With ActiveSheet For rowi = 2 To LastRow If Cells(i, 2) = "" Then Cells(rowi, "b").Select Cells(rowi, "b").Formula = "4/28/2009" Cells(rowi, "e").Select Cells(rowi, "e").Formula = "1" End If Next End With End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Fill in Blanks with immediately above cell value | Excel Discussion (Misc queries) | |||
Macro Formula for counting rows and doing a fill in afterwards | Excel Worksheet Functions | |||
Fill blanks down column with cell above | Excel Discussion (Misc queries) | |||
Fill Blanks Macro | Excel Discussion (Misc queries) | |||
How do I fill in pivot table blanks? | Excel Worksheet Functions |