Seamus2626
asked on
VBA Error
Hi,
I have this code in the VBA Editor
ActiveCell.FormulaR1C1 = "=DATE(YEAR(Update!AB1),MO NTH(Update !AB1),0)"
It produces an error in excel, the formula it drops out is
=DATE(YEAR(Update!'AB1'),M ONTH(Updat e!'AB1'),0 )
I notice if i take the apostrophes away from AB1, the formula works, how can i fix this in the editor?
Thanks
Seamus
I have this code in the VBA Editor
ActiveCell.FormulaR1C1 = "=DATE(YEAR(Update!AB1),MO
It produces an error in excel, the formula it drops out is
=DATE(YEAR(Update!'AB1'),M
I notice if i take the apostrophes away from AB1, the formula works, how can i fix this in the editor?
Thanks
Seamus
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER