ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Refresh CRM data in Excel 2007 using VBA (https://www.excelbanter.com/excel-programming/424807-refresh-crm-data-excel-2007-using-vba.html)

Marc

Refresh CRM data in Excel 2007 using VBA
 
Hi,

I want to refresh my CRM data in Excel 2007 using a VBA macro. The macro
recorder doesn't leave any trace.

In the older versions i used the following macro to trigger a menu item but
don't know how to do it in the new office 2007 layout:

Dim oBar As CommandBar
Dim oCtrl As CommandBarControl

Application.CutCopyMode = False
Set oBar = Application.CommandBars("Worksheet Menu Bar")
Set oCtrl = oBar.Controls("Hyperion").Controls(6).Controls(1)
oCtrl.Execute

Anyone a clue?


All times are GMT +1. The time now is 05:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com