I have a macro which constructs a chart - it works fine with hard-coded sheet names, but I need it to work on other sheets. When I substitute the sheet name with ActiveSheet.Name it no longer works...
eg. This works:
ActiveChart.Location Where:=xlLocationAsObject, _
Name:= "JAN05 (01FEB05 @ 1524)"
This doesn't:
ActiveChart.Location Where:=xlLocationAsObject, _
Name:=ActiveSheet.Name
Any help would be greatly appreciated. I've been stuck on this now for 2 days!
Regards,
Steve
eg. This works:
ActiveChart.Location Where:=xlLocationAsObject, _
Name:= "JAN05 (01FEB05 @ 1524)"
This doesn't:
ActiveChart.Location Where:=xlLocationAsObject, _
Name:=ActiveSheet.Name
Any help would be greatly appreciated. I've been stuck on this now for 2 days!
Regards,
Steve