VinceF
Board Regular
- Joined
- Sep 22, 2007
- Messages
- 192
- Office Version
- 2016
- Platform
- Windows
Help please...
Trying to make a Macro to do this,
in cell L5 I put in the formula =IF(K5="","",RAND()) and drag it down to cell L44
When I execute the Macro I get a Runtime Error 1004
Sub UNLOCKGROUPS()
'
' UNLOCKGROUPS Macro
'
'
ActiveCell.FormulaR1C1 = "=IF(RC[-1]="""","""",RAND())"
Range("L5").Select
Selection.AutoFill Destination:=Range("L5:L44"), Type:=xlFillDefault
Range("L5:L44").Select
Range("L3").Select
End Sub
Much Appreciated
VinceF
excel 2016
Trying to make a Macro to do this,
in cell L5 I put in the formula =IF(K5="","",RAND()) and drag it down to cell L44
When I execute the Macro I get a Runtime Error 1004
Sub UNLOCKGROUPS()
'
' UNLOCKGROUPS Macro
'
'
ActiveCell.FormulaR1C1 = "=IF(RC[-1]="""","""",RAND())"
Range("L5").Select
Selection.AutoFill Destination:=Range("L5:L44"), Type:=xlFillDefault
Range("L5:L44").Select
Range("L3").Select
End Sub
Much Appreciated
VinceF
excel 2016