Forum Discussion
PhilB
New Contributor III
Hi Cosimo,
There is a OS Knowledge Base article about this: KB0010071
In practice, it looks something like this:
Sub RefreshXFFunctions() Set XFAddIn = application.COMAddIns("OneStreamExcelAddIn") If Not XFAddIn Is Nothing Then If Not XFAddIn.Object Is Nothing Then Call XFAddIn.Object.RefreshXFFunctions End If End IfEnd Sub
or
Sub RefreshCubeViews() Set XFAddIn = application.COMAddIns("OneStreamExcelAddIn") If Not XFAddIn Is Nothing Then If Not XFAddIn.Object Is Nothing Then Call XFAddIn.Object.RefreshCubeViews End If End If End Sub
Cosimo
3 years agoContributor II
Thank Phil. This is exactly what I was looking for. Interesting to note that I had to run 3 functions to simulate “Refresh Workbook”:
> Sub Refresh_Workbook() > Set XFAddin = Application.COMAddIns("OneStreamExcelAddIn") > If Not XFAddin Is Nothing Then > If Not XFAddin.Object Is Nothing Then > Call XFAddin.Object.RefreshXFFunctions > Call XFAddin.Object.RefreshQuickViews > Call XFAddin.Object.RefreshCubeViews > End If > End If > End Sub
- MarkHoughton3 years agoContributor
Thanks Cosimo for this extra info, also I found that in the Preferences... Enable Macros for XF Event Processing needed to be set to FALSE for it to work.
Related Content
- 3 months ago
- 8 months ago
- 2 years ago
- 3 years ago
- 11 months ago