I have an Excel 2007 Macro that adds a chart based on data from another sheet. The problem is that it works on all the computers in the office but one.
All office and excel settings are the same on all computers.
To test the problem I have the most simple macro that should Add a chart but on this installation of Excel 2007 nothing happens.
Sub Macro7()
Charts.Add
ActiveChart.Name = "Earnings Chart"
End Sub
This should just create a chart and name it.
The problem is the code line errors at ActiveChart the object does not exist.
Run-Time error '91'
Object variable or With Blovk variable not set
The strange thing is that this works on all other computers in the office accept this one.
I have tried an uninstall and reinstall of office, matched the settings in office to that of a computer that it works fine on.
It seems like the Charts.Add is completely missing from this specific install of excel.
Any suggestions would be greatly appreciated.