I just got my new machine with Vista and Office 2007. I’m slowly finding my way around and I’ve discovered a problem with some of my VBA code. I really have two questions – one specific and one more general.
First, the following code worked fine in Excel 2003 but does not in 2007.
ActiveChart.ApplyCustomType ChartType:=xlBuiltIn, TypeName:= _
“Line – Column on 2 Axes”
The error is
Run-time error ‘-2147467259 (80004005)’:
Method ‘ApplyCustomType’ of object’_Chart’ failed
What should this code look like in Excel 2007? I would re-record the macro but I don’t see custom chart formats as an option.
My second question, does anyone have any resources they can recommend for getting up to speed on Office 2007, VBA, and especially migrating older VBA code into 2007?
Thanks so much in advance,
Kevin