Ignore the above reply.But how it can done for all the users(Automated way) and if some of the user preference has to be enabled at all user level. How this can be achived. Since we could find if you enable some settings in the Qlikview client-User preference and still it is not updated in the menu user preference resulting in unexpected output... Any suggestions.
'mh, 26.05.2020, Enable Menu Bars "Navigation" and "Window Server Objects" if not yet active, in QVPlugin 'Can be started at document startup (on-open trigger in document settings).
Sub SetMenuBars m1 = SetMenuBar ("State-Bar0",1) 'Navigation make it visible m2 = SetMenuBar ("State-Bar1",1) 'Window Server Objects make it visible m3 = SetMenuBar ("State-Bar2",0) 'Remarks hide it m4 = SetMenuBar ("State-Bar3",0) 'Worksheets hide it m5 = SetMenuBar ("State-Bar4",0) 'Bookmarks hide it
'Inform user if menu change applies If (m1 + m2 + m3 + m4 + m5 > 0) Then msgbox "Menubar Settings done. Please restart report in Access Point AGAIN and close this current one thereafter." End If End Sub
Function SetMenuBar (theKey, theValue) Set wshShell = CreateObject( "WScript.Shell" )