Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
fabio
Contributor III
Contributor III

problem with macro/trigger/selection

Hi!

I have a button (myButton) with a action (select in field). It works fine.

I need to press this button at any selection in auto.

I created a new trigger in the "document event trigger" of type "OnAnySelection" that launches this macro:

Set myButton = ActiveDocument.GetSheetObject("myButton")

MyButton.Press

Now, when I make any selection, i have to make the selection TWICE!!

the first selection the sheet does not update! why?

help me please 😄



3 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Could you sent your document or a small version reproducing the error?

jzimolong
Creator II
Creator II

Not sure if attached is exactly what you are looking for, but it triggers macro on any selection in field "Auto".

Anonymous
Not applicable

Hello,

I tried to make selections in your application and immediatly Auto is selected to Honda (I didn't need to clik twice).

I also tried to set your trigger in the "document event trigger" of type "OnAnySelection" (as you said in your first post) and it works.

I use QV 11 SR1...

Anyway, I read that macros are not always "safe"... it can be that sometimes they don't work properly.