Link to home
Start Free TrialLog in
Avatar of garethtnash
garethtnashFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Excel VBA - Run Time error '1004' Application-defined or object-defined error

Help!

I'm getting the following error -

Run-time error '1004';
Application-defined or object-defined error

Open in new window


When I run the following code -

LR2 = Range("A" & Rows.Count).End(xlUp).Row
    Ws.Range("BM1").FormulaR1C1 = "Current TS?"
    Ws.Range("BM2:BM" & LR2).FormulaR1C1 = "=IF(AND(RC63 = RC62, RC57 > 0), ""Current"", "")"

Open in new window


its the last line that gets highlighted

Thanks
SOLUTION
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of garethtnash

ASKER

Thanks Both - very quick!
Avatar of Rgonzo1971
Rgonzo1971

I do not see how Shaun's answer is right