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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

set shortcut function to a button doesn't work

Hi QV Experts ,

Below code is from the QV Doc Example.  I am getting following error

Object doesn't support this property or method: 'prop.Type'

Please Suggest. Thanks in advance

rem ** create new shortcut button - clear except locked **

set newbutton = ActiveDocument.Sheets(0).CreateButton

set prop = newbutton.GetProperties

prop.Text.v = "Clear"

prop.Type = 1    

prop.ShortcutFunction = 4

newbutton.SetProperties prop

My actual requirement is to add a button and set action to "BACK". I should not do it manually, i need to dynamically add a button and set the shortcut function to "BACK"

0 Replies