Hi all,
i have problem with macro:
Dim iCell As Range
count = 1
last = ActiveSheet.Range("a3").End(xlDown).Select
For Each iCell In ActiveSheet.Range("a3", ActiveSheet.Range("a3").End(xlDown)).Select
iCell.Value = count
count = count + 1
Next iCell
Debug problem - "Object reguired" in line "For Each iCell In Ac..."
I need insert increment number from a3 to last ActiveSheet range..
ActiveSheet.Range("a3", ActiveSheet.Range("a3").End(xlDown)).Select is correct. But in foreach i need other syntax?
i have problem with macro:
Dim iCell As Range
count = 1
last = ActiveSheet.Range("a3").End(xlDown).Select
For Each iCell In ActiveSheet.Range("a3", ActiveSheet.Range("a3").End(xlDown)).Select
iCell.Value = count
count = count + 1
Next iCell
Debug problem - "Object reguired" in line "For Each iCell In Ac..."
I need insert increment number from a3 to last ActiveSheet range..
ActiveSheet.Range("a3", ActiveSheet.Range("a3").End(xlDown)).Select is correct. But in foreach i need other syntax?