Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

Re: Analysis: How to open a query in display mode and switching to input ready via macro?

$
0
0

Hi Daniel,

I'm wondering why the macro is not working on "workbook open"?

Is you Add-in not yet active?

 

I use the respective coding to start the add-in directly, so afterwards I can also trigger refresh etc. commands...

 

Try:

 

Private Sub Workbook_Open()

Dim lResult As Long
Dim addin As COMAddIn
For Each addin In Application.COMAddIns
If addin.progID = "SBOP.AdvancedAnalysis.Addin.1" Then
If addin.Connect = False Then addin.Connect = True
End If
Next

 

' Put here your "Application.Run" code

 

End Sub

 

Regards, Martin


Viewing all articles
Browse latest Browse all 8944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>