G
Guest
I have recently upgraded from Office 2000 to office 2003.
I have Excel worksheets containing VBA macros which maps create maps from the data. These worked fine under Office 2000, but now produce a "Run time error 1004 - cannot insert object".
This is the line of code which produces the error:
set oleobj=ActiveSheet.OleObjects.Add(Classtype:="MSMap.8")
Excel for Office 2000 has a component called Microsoft Map but I need to know the equivalent component for Excel 2003, or how to change the code above to work in Excel 2003.
I have Excel worksheets containing VBA macros which maps create maps from the data. These worked fine under Office 2000, but now produce a "Run time error 1004 - cannot insert object".
This is the line of code which produces the error:
set oleobj=ActiveSheet.OleObjects.Add(Classtype:="MSMap.8")
Excel for Office 2000 has a component called Microsoft Map but I need to know the equivalent component for Excel 2003, or how to change the code above to work in Excel 2003.