Macro iterate through with If
Closed
Cristina
-
Apr 27, 2009 at 08:18 AM
mubashir aziz Posts 190 Registration date Sunday April 12, 2009 Status Member Last seen February 16, 2010 - Apr 29, 2009 at 03:34 AM
mubashir aziz Posts 190 Registration date Sunday April 12, 2009 Status Member Last seen February 16, 2010 - Apr 29, 2009 at 03:34 AM
Related:
- Macro iterate through with If
- Spell number in excel without macro - Guide
- Macro excel download - Download - Spreadsheets
- Excel macro to create new sheet based on value in cells - Guide
- Run macro on opening workbook - Guide
- Excel vba assign macro to button programmatically - Guide
1 response
mubashir aziz
Posts
190
Registration date
Sunday April 12, 2009
Status
Member
Last seen
February 16, 2010
166
Apr 29, 2009 at 03:34 AM
Apr 29, 2009 at 03:34 AM
Try below code .... Actually i'm unable to use Name funcation in VBA else it will run automatically upto the rows count in E. I defined a name countme=counta(Sheet1!$E:$E).
Sub FillMacro() Range("F1").Select ActiveCell.FormulaR1C1 = _ "=IF(ISERROR(FIND(""resolved"",LOWER(RC[-1]),1)),"""",""Resolved"")" Range("F1").Select 'It will fill upto 1000 row and you can change it Selection.AutoFill Destination:=Range("F1:F1000"), Type:=xlFillDefault Range("F1").Select End Sub