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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how to navigate between documents QlikView

hi, I have 2 documents open in QlikView how do I switch from one to another from macro ( Api )?

Thanks

10 Replies
Siva_Sankar
Master II
Master II

To swich from one qlikview tab or sheet to another, you can use the following.

Sub SwitchTab
For x = 0 to 5
ActiveDocument.ActivateSheet x
ActiveDocument.GetApplication.Sleep 1000
ActiveDocument.GetApplication.WaitForIdle                   
next
End Sub

Regards.

siva

Colin-Albert
Partner - Champion
Partner - Champion

Use an action button or an action on a text object. You do not need a macro to navigate between documents.

MK_QSL
MVP
MVP

Please find the enclosed file.

Hope this help.

Anonymous
Not applicable
Author

I have 2 documents opened and I want to write a code same to the action that you execute when you press window in the Qlik view menu.

sorry for my english

Anonymous
Not applicable
Author

I want to navigate between 2 documents qvw not between 2 sheets

Anonymous
Not applicable
Author

I have to use a code because I have to do this from VB (external code)

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     You dont need to have the macro to do this.

     Instead you can use the "Open QlikView Document" action available under "External" option in Action Tab of a button.

     On one of the document (Say A)you can place the button with this action to open other document(Say B).

     Do the vice verse for the document B.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Anonymous
Not applicable
Author

I have to use a code because I have to do this from VB (external code),

and I know that I could use OpenDoc or openDocEx but if my document is opened why I have to go over all the credentials to open it again? (username, password, etc. ..)

thank


kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     No if the document is open you don't need to give any credentials.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!