Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

warfollowmy_ver
Contributor III

Macro. Get Selections. Clear All. And Return Selections.

Hello!

I ask for help.

1) As a macro, take the current selection in the field.

2) Clear all selections.

H) Other operations...

4) Return the selections from point 1 to this field.

Tags (1)
1 Solution

Accepted Solutions
MVP & Luminary
MVP & Luminary

Re: Macro. Get Selections. Clear All. And Return Selections.

1) and 4) might be adressed by creating respectively storing the selections into a bookmark and apply it at last again.

- Marcus

5 Replies

Re: Macro. Get Selections. Clear All. And Return Selections.

To clear all the selection why you need the macro ?? add a button/text box and add action to clear selections

zhadrakas
Valued Contributor

Re: Macro. Get Selections. Clear All. And Return Selections.

sub test

'You can save your current selection but i think you dont Need to, thats why the following two lines are commented
'set x = ActiveDocument.GetCurrentSelections
's = x.Selections
ActiveDocument.ClearAll
msgbox "DO WHAT YOU WANT TO DO"
ActiveDocument.Back
end Sub

regards

tim

MVP & Luminary
MVP & Luminary

Re: Macro. Get Selections. Clear All. And Return Selections.

1) and 4) might be adressed by creating respectively storing the selections into a bookmark and apply it at last again.

- Marcus

warfollowmy_ver
Contributor III

Re: Macro. Get Selections. Clear All. And Return Selections.

Thank you!!!

'Remember user selections

ActiveDocument.CreateUserBookmark "BM555"

'Return user selections and delete them

ActiveDocument.RecallUserBookmark "BM555"

ActiveDocument.RemoveUserBookmark "BM555"

EternalDX
New Contributor III

Re: Macro. Get Selections. Clear All. And Return Selections.

This dont function on webview, any other solutions??