Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

I need to create from Qlikview VBScript an Excel document containing a button, and I need to associate a VB macro to the button

Hi,

I need to create from Qlikview VBScript an Excel document containing a button,

and I need to associate a VB macro to the button. Here below the script I created.

function CreateSheet()

.....

Set XLApp = CreateObject("Excel.Application")

    XLApp.Visible = true

set XLDoc = XLApp.Workbooks.Add

      XLDoc.Worksheets(1).Buttons.Add(50, 50, 50, 50).Select

      XLDoc.Worksheets(1).Buttons(1).Name = "btnPippo"

      'XLDoc.Worksheets(1).Buttons("btnPippo").Caption = "Pippo"

      XLDoc.Worksheets(1).Buttons("btnPippo").OnAction="pippo"

.......

end function  

    function pippo()

    msgbox "ciao"

    end function

I'm able to create the button,  but I got an error ( ) when I try to associate the "OnAction" method.

Does anyone has experienced such a problem?

thank you very much

Labels (1)
0 Replies