<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Macros For listbox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macros-For-listbox/m-p/977635#M333986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijeta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow these steps to change the default green, white, and gray color schemes:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. From the Tools menu, select Edit Module (or press Ctrl + M).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Enter the following code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub SetColorPrefs()&lt;/P&gt;&lt;P&gt;Dim UserPrefs&lt;/P&gt;&lt;P&gt;set UserPrefs = _&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.GetUserPreferences&lt;/P&gt;&lt;P&gt;' Set the "Selected" Color&lt;/P&gt;&lt;P&gt;UserPrefs.CustomSelBgColor(1).PrimaryCol.Col = _&lt;/P&gt;&lt;P&gt;RGB (0,0,255) ' Blue&lt;/P&gt;&lt;P&gt;UserPrefs.CustomSelFgColor(1).PrimaryCol.Col = _&lt;/P&gt;&lt;P&gt;RGB (255,255,0) ' Yellow&lt;/P&gt;&lt;P&gt;' Set the "Possible" Color&lt;/P&gt;&lt;P&gt;UserPrefs.CustomSelBgColor(2).PrimaryCol.Col = _&lt;/P&gt;&lt;P&gt;RGB (255,255,0) ' Yellow&lt;/P&gt;&lt;P&gt;UserPrefs.CustomSelFgColor(2).PrimaryCol.Col = _&lt;/P&gt;&lt;P&gt;RGB (0,0,0) ' Black&lt;/P&gt;&lt;P&gt;' Set the Excluded Color&lt;/P&gt;&lt;P&gt;UserPrefs.CustomSelBgColor(5).PrimaryCol.Col = _&lt;/P&gt;&lt;P&gt;RGB (200,200,200) ' Light gray&lt;/P&gt;&lt;P&gt;UserPrefs.CustomSelFgColor(5).PrimaryCol.Col = _&lt;/P&gt;&lt;P&gt;RGB (0,0,0) ' Black&lt;/P&gt;&lt;P&gt;' Set the Locked Color&lt;/P&gt;&lt;P&gt;UserPrefs.CustomSelBgColor(0).PrimaryCol.Col = _&lt;/P&gt;&lt;P&gt;RGB (255,0,0) ' Red&lt;/P&gt;&lt;P&gt;UserPrefs.CustomSelFgColor(0).PrimaryCol.Col = _&lt;/P&gt;&lt;P&gt;RGB (0,0,0) ' Black&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.SetUserPreferences _&lt;/P&gt;&lt;P&gt;UserPrefs&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. Click on the Check button to test for syntax errors. It should display "*** Ready ***".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4. Click on the Test button to execute the code.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5. Click on OK to close the editor.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;6. From the Settings menu, open Document Properties (or press Ctrl + Alt + D).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;7. Under Color Scheme, select [Custom]. Click on OK.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;8. Note that the new color scheme has been applied.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change the colours according to you by applying respective colour codes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps by 'Stepen Redmound' in "Qlikview for Developers Cookbook"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Oct 2015 11:16:09 GMT</pubDate>
    <dc:creator>raajaswin</dc:creator>
    <dc:date>2015-10-14T11:16:09Z</dc:date>
    <item>
      <title>Macros For listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Macros-For-listbox/m-p/977633#M333984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to write macro to change color from list box that is for to change selected color green with orange and deselected color gray to white .can any one tell me how to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 11:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macros-For-listbox/m-p/977633#M333984</guid>
      <dc:creator>vijetas42</dc:creator>
      <dc:date>2015-10-14T11:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Macros For listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Macros-For-listbox/m-p/977634#M333985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at this blog post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;http: / / www . qlikfix . com/2012/05/18/any-colour-as-long-as-its-green/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 11:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macros-For-listbox/m-p/977634#M333985</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-10-14T11:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Macros For listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Macros-For-listbox/m-p/977635#M333986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijeta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow these steps to change the default green, white, and gray color schemes:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. From the Tools menu, select Edit Module (or press Ctrl + M).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Enter the following code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub SetColorPrefs()&lt;/P&gt;&lt;P&gt;Dim UserPrefs&lt;/P&gt;&lt;P&gt;set UserPrefs = _&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.GetUserPreferences&lt;/P&gt;&lt;P&gt;' Set the "Selected" Color&lt;/P&gt;&lt;P&gt;UserPrefs.CustomSelBgColor(1).PrimaryCol.Col = _&lt;/P&gt;&lt;P&gt;RGB (0,0,255) ' Blue&lt;/P&gt;&lt;P&gt;UserPrefs.CustomSelFgColor(1).PrimaryCol.Col = _&lt;/P&gt;&lt;P&gt;RGB (255,255,0) ' Yellow&lt;/P&gt;&lt;P&gt;' Set the "Possible" Color&lt;/P&gt;&lt;P&gt;UserPrefs.CustomSelBgColor(2).PrimaryCol.Col = _&lt;/P&gt;&lt;P&gt;RGB (255,255,0) ' Yellow&lt;/P&gt;&lt;P&gt;UserPrefs.CustomSelFgColor(2).PrimaryCol.Col = _&lt;/P&gt;&lt;P&gt;RGB (0,0,0) ' Black&lt;/P&gt;&lt;P&gt;' Set the Excluded Color&lt;/P&gt;&lt;P&gt;UserPrefs.CustomSelBgColor(5).PrimaryCol.Col = _&lt;/P&gt;&lt;P&gt;RGB (200,200,200) ' Light gray&lt;/P&gt;&lt;P&gt;UserPrefs.CustomSelFgColor(5).PrimaryCol.Col = _&lt;/P&gt;&lt;P&gt;RGB (0,0,0) ' Black&lt;/P&gt;&lt;P&gt;' Set the Locked Color&lt;/P&gt;&lt;P&gt;UserPrefs.CustomSelBgColor(0).PrimaryCol.Col = _&lt;/P&gt;&lt;P&gt;RGB (255,0,0) ' Red&lt;/P&gt;&lt;P&gt;UserPrefs.CustomSelFgColor(0).PrimaryCol.Col = _&lt;/P&gt;&lt;P&gt;RGB (0,0,0) ' Black&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.SetUserPreferences _&lt;/P&gt;&lt;P&gt;UserPrefs&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. Click on the Check button to test for syntax errors. It should display "*** Ready ***".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4. Click on the Test button to execute the code.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5. Click on OK to close the editor.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;6. From the Settings menu, open Document Properties (or press Ctrl + Alt + D).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;7. Under Color Scheme, select [Custom]. Click on OK.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;8. Note that the new color scheme has been applied.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change the colours according to you by applying respective colour codes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps by 'Stepen Redmound' in "Qlikview for Developers Cookbook"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 11:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macros-For-listbox/m-p/977635#M333986</guid>
      <dc:creator>raajaswin</dc:creator>
      <dc:date>2015-10-14T11:16:09Z</dc:date>
    </item>
  </channel>
</rss>

