Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming,microsoft.public.excel,microsoft.public.vstudio.extensibility
|
|||
|
|||
How to Get Reference of CommandBar in Excel?
hi!
i am using VC7 and Office 2003. I want to add a toolbar in EXCEL with some buttons. i have done that for word already. First i get the reference of the CommandBar using the following code. HRESULT hr; CComPtr<Office2003::_CommandBars spCmdBars; //QI() for application. CComQIPtr<MSWord::_Application spWordApp(m_pApplication); ATLASSERT(spWordApp); m_pWordApp = spWordApp; hr = m_pWordApp-get_CommandBars(&spCmdBars); so now when i try to do the same with Excel i receive an error message that get_CommandBars is not member of m_pExcelApp. i don't know how to do that. so if any body knows about that then please help me. i m in hurry. Thanks. Ahmad Jalil Qarshi |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2002 - Commandbar.protection = msoBarNoCustomize | Excel Programming | |||
CommandBar code does NOT work if Excel is Already Open :( | Excel Programming | |||
Identifying commandbar names in non-English versions of Excel | Excel Programming | |||
commandbar | Excel Programming | |||
Add control to commandbar | Excel Programming |