Converting VBA about charts to 2007

B

Brandon Penner

Hi all, I am in the process of converting my VBA program to Excel 2007 and am
getting an error with the following line that is stumping me. Any help
appreciated. Thanks!

ActiveChart.Axes(xlCategory, xlPrimary).CategoryType = xlAutomatic

The error reads:
"Run-time error '-2147467259(80004005)':
Invalid Parameter"
 
Top