T
tim
Howdy,
Seems so simple, but gives the "run time error 1004". "defined_Range" is a
dynamic range in the workbook.
Dim myCell as Range
For Each myCell In Range("Defined_Range")
If IsEmpty(myCell) Then
myCell.Formula = "=Int(rand()*500+1"
myCell.Formula = myCell.Value
End If
Next rCell
Regards,
Tim
Seems so simple, but gives the "run time error 1004". "defined_Range" is a
dynamic range in the workbook.
Dim myCell as Range
For Each myCell In Range("Defined_Range")
If IsEmpty(myCell) Then
myCell.Formula = "=Int(rand()*500+1"
myCell.Formula = myCell.Value
End If
Next rCell
Regards,
Tim