![]() |
Referencing an Excel Chart in VBA
I am working on a form in MS Access. In design mode I click on Insert
| Object from the main menu. Then I select Microsoft Excel Chart. This puts a new Excel chart on my Access form (it seems to have some default data). Now I want to use VBA to modify this chart at run time. However I have no idea how to reference the chart in code. Let's say that I name the control myChart. In code when I inspect the properties and methods of myChart it seems to be just some generic object properties and methods. Is this object some sort of OLE container or something? I don't know very much about how it works when you insert another object on to an Access form (or VB form for that matter). Is there some magic way that I have to reference the object so that I can get at the Excel object model? Do I have to create an instance of the Excel Application and then get at it that way? If so, how do I ultimately reference myChart to change its properties? Thanks, Corey Burnett |
All times are GMT +1. The time now is 10:17 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com