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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Select multiple values from a Field

Hi,

I want to write a Marco using VBScript. Upon event rising, the macro should select certain values from the related field. In my case, I have a field with values ranging from 0 to 6. If the user clicks the button, values from 4-6 should be selected.

Something like:

<code>

sub MYBUTTON
set f = ActiveDocument.GetField ("MYFIELD")
f.select (4 to 6)
end sub

</code>

Thanks in advance,

Klaus

1 Solution

Accepted Solutions
Not applicable
Author

hi,

you can use

sub period

mySelect= ">=4" & " <=6"

ActiveDocument.Fields("myfield").Select mySelect

end sub



thanks

View solution in original post

2 Replies
Not applicable
Author

hi,

you can use

sub period

mySelect= ">=4" & " <=6"

ActiveDocument.Fields("myfield").Select mySelect

end sub



thanks

Not applicable
Author

Great, it worked!

Thanks a lot,

Klaus