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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Get selected Items from ListBox in macro

Hi,

how can I get the selected Items from a Listbox in a VisualBasic Script. By the way, does anybody know about the existence of a good QlikView VisualBasic API??

5 Replies
sathishkumar_go
Partner - Specialist
Partner - Specialist

Hi

use getselectedvalue()

-Sathish

sathishkumar_go
Partner - Specialist
Partner - Specialist

Hi use this macro

sub gETsELECTEDvALUE

set doc1 = ActiveDocument

set mySelections1 = doc1.fields("FieldName").GetSelectedValues

for i = 0 to mySelections1.Count - 1

set v1 = ActiveDocument.Variables("gETsELECTEDvALUE")

v1.SetContent mySelections1.Item(i).text,true

next

end sub



i think it ll help for u

-Sathish



Not applicable
Author

can I access the ListBox also by title/caption??

sathishkumar_go
Partner - Specialist
Partner - Specialist

Title caption means? u want title name or u want to display in title caption?

-Sathish

Not applicable
Author

doc.GetSheetObject("Id") is the solution what I was looking for...

Your previous solution worked, thanks.

Dou you have any suggestion for an API for visualbasic in QlikView or can you tell me you you are looking for methods?? It would be really helpful.