Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Yuhka
Contributor III
Contributor III

VBA macro Get variable and showing a message

Hello qlikckers, I'm new to qlikview and now learning the macros!

I would like to show two types of messagesbox when clicking buttons.

I can show a messagebox which shows the values input as vTest when clicking Test_01 button.

キャプチャ2.PNG

 

 

 

 

 

 

Then clicking the Test_2 button, I would like to show a messagebox which shows the messages according to the values input as vTest as follows.

vTest = "Tomato"   ->   message = "Veges"

vTest = others   ->   message = "Fruits"

キャプチャ3.PNG

 

 

 

 

 

 

Now I'm making some mistakes and my macro doesn't work.

Could anyone tell me if you know.

Thank you for your support!

Labels (6)
1 Solution

Accepted Solutions
marcus_sommer

Your specified fieldname of LB_List isn't correct - it's just List.

Beside this what do you want to reach with this kind of macros? Macros should always be the last shot if the needed usability couldn't be applied with any other method - see for this: Macros-are-Bad.

- Marcus

View solution in original post

1 Reply
marcus_sommer

Your specified fieldname of LB_List isn't correct - it's just List.

Beside this what do you want to reach with this kind of macros? Macros should always be the last shot if the needed usability couldn't be applied with any other method - see for this: Macros-are-Bad.

- Marcus