Article ID: 210021 - Last Review: October 11, 2006 - Revision: 2.3 HOW TO: Use Automation to Change a Graph Chart Type in Access 2000This article was previously published under Q210021 On This PageSUMMARY
This article shows two methods that you can use to work with Microsoft Graph objects. One method demonstrates how to use Automation to change the chart type of a Microsoft Graph object. The second method shows how to determine the graph type. You can use Automation to change the chart type of a Microsoft Graph object. However, changing a graph from one type to another automatically resets properties of the graph that do not apply to the new graph type. For example, trendlines apply to a Two Dimensional Column graph but not to a Pie chart. Therefore, changing the type from a Column to a Pie drops the trendlines. Example: Changing a Chart TypeThe following example shows you how to produce a chart in the Northwind.mdb database and change a graph's chart type to 3-Dimensional Pie:
Example: Determining Chart Type of GraphThe following example determines if the chart type of the graph in the earlier example is a 2-Dimensional Bar type:
REFERENCESFor more information about Automation, click Microsoft Visual Basic Help on the Help menu, type understanding automation in the Office Assistant or the Answer Wizard, and then click Search to view the topic. For more information about different chart types, click Microsoft Chart Help on the Help menu, type chart types in the Office Assistant or the Answer Wizard, and then click Search to view the topic. For more examples of Automation between Microsoft Access and Microsoft Graph, see the Office 2000 Automation Help file, Auto2000.exe. The Auto2000.exe file contains the Microsoft Office 2000 Automation Help file created by Microsoft Technical Support. This Help file contains Automation theory and multiple examples on automating all the Microsoft Office 2000 products (Microsoft Access, Microsoft Excel, Microsoft Word, Microsoft PowerPoint, and Microsoft Outlook) as well as Microsoft Graph, DAO/ODBCDirect, Microsoft Binder, OLE Messaging, and the Office Assistant.
| Article Translations
|

Back to the top
