<?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 Macro commands to control excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-commands-to-control-excel/m-p/224521#M76917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks amars,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer had the missing piece I needed.&lt;/P&gt;&lt;P&gt;i have used:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ExcelDoc.ActiveSheet.Range("B1:D1").HorizontalAlignment = xlCenter&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;like I'm using in the excel, but it didn't work, I had to declare:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Const xlCenter = -4108&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Btw I didn't understand why the extra code you wrote is needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Feb 2011 11:30:22 GMT</pubDate>
    <dc:creator>eliran</dc:creator>
    <dc:date>2011-02-22T11:30:22Z</dc:date>
    <item>
      <title>Macro commands to control excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-commands-to-control-excel/m-p/224519#M76915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main reason for this Question is to find out how can I align cells in excel using a macro.&lt;/P&gt;&lt;P&gt;Of course I'm after creating the excel and copying the data to it, I merged couple of cells and want them to be aligned to the center.&lt;/P&gt;&lt;P&gt;I can't seem to find what is the command to do so.&lt;/P&gt;&lt;P&gt;And in a general note, Is there a way to learn / find the commands and properties of the excel?&lt;/P&gt;&lt;P&gt;For example, in Excel, the easiest way to do such things is to record a macro and then view the code generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eliran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 09:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-commands-to-control-excel/m-p/224519#M76915</guid>
      <dc:creator>eliran</dc:creator>
      <dc:date>2011-02-22T09:47:20Z</dc:date>
    </item>
    <item>
      <title>Macro commands to control excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-commands-to-control-excel/m-p/224520#M76916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eliran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Const xlCenter = -4108&lt;/P&gt;&lt;P&gt;Const xlNone = -4142&lt;/P&gt;&lt;P&gt;Const xlDown = -4121&lt;/P&gt;&lt;P&gt;Const xlRight = -4152&lt;/P&gt;&lt;P&gt;Const xTop = -4160&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;XLSheet.Range("B1:B2").HorizontalAlignment = xlCenter&lt;/P&gt;&lt;P&gt;XLSheet.Range("B1:B2").VerticalAlignment = xlCenter&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 10:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-commands-to-control-excel/m-p/224520#M76916</guid>
      <dc:creator>amars</dc:creator>
      <dc:date>2011-02-22T10:04:01Z</dc:date>
    </item>
    <item>
      <title>Macro commands to control excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-commands-to-control-excel/m-p/224521#M76917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks amars,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer had the missing piece I needed.&lt;/P&gt;&lt;P&gt;i have used:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ExcelDoc.ActiveSheet.Range("B1:D1").HorizontalAlignment = xlCenter&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;like I'm using in the excel, but it didn't work, I had to declare:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Const xlCenter = -4108&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Btw I didn't understand why the extra code you wrote is needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 11:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-commands-to-control-excel/m-p/224521#M76917</guid>
      <dc:creator>eliran</dc:creator>
      <dc:date>2011-02-22T11:30:22Z</dc:date>
    </item>
    <item>
      <title>Macro commands to control excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-commands-to-control-excel/m-p/224522#M76918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eliran,&lt;/P&gt;&lt;P&gt;If we don't declare the constant, we never know what the -4108 means thereafter , also the meaning of -4108 . So it is always good to declare the constants &amp;amp; then use it.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 11:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-commands-to-control-excel/m-p/224522#M76918</guid>
      <dc:creator>amars</dc:creator>
      <dc:date>2011-02-22T11:41:29Z</dc:date>
    </item>
    <item>
      <title>Macro commands to control excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-commands-to-control-excel/m-p/224523#M76919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for replying,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But by extra code I meant, the XlRight/Down/None&lt;/P&gt;&lt;P&gt;I didn't need to use it to get the allignment.&lt;/P&gt;&lt;P&gt;And a follow up question if you may, is there an easy way to get the all the properties that I can use with the Range? for example I also want to play with the boarder colour, In vb it's:&lt;/P&gt;&lt;P&gt;Borders(xlEdgeLeft).TintShade= 0.32131 (some colour I picked up)&lt;/P&gt;&lt;P&gt;How do I know the code that can be used in the qv macro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Eliran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 12:02:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-commands-to-control-excel/m-p/224523#M76919</guid>
      <dc:creator>eliran</dc:creator>
      <dc:date>2011-02-22T12:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Macro commands to control excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-commands-to-control-excel/m-p/224524#M76920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also have a similar problem.&lt;/P&gt;&lt;P&gt;Is there a possibility to open an excel and find any data or record.&lt;/P&gt;&lt;P&gt;I can use loop but i am looking for a simple find syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jul 2018 16:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-commands-to-control-excel/m-p/224524#M76920</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-22T16:06:37Z</dc:date>
    </item>
  </channel>
</rss>

