<?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 Excel API - simple formatting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148848#M27070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;The very simplest way to find out how to do anything in Excel is to start recording a Macro, do what you want to do in Excel, stop recording then look at the code that has been generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2009 00:53:41 GMT</pubDate>
    <dc:creator>stephencredmond</dc:creator>
    <dc:date>2009-07-09T00:53:41Z</dc:date>
    <item>
      <title>Excel API - simple formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148847#M27069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Does anyone have some simple examples of formatting with Excel API via a macro?&lt;/P&gt;&lt;P&gt;I have a table in QV9 and I would like to send this to excel, together with some additional information and formatting.&lt;/P&gt;&lt;P&gt;An example would be to have a Title in cell A1, bold, underlined in times 14 font.&lt;BR /&gt;Then my table in B1 onwards, that sort of thing.&lt;/P&gt;&lt;P&gt;To start I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;sub simple_export_test&lt;BR /&gt;set XLApp = CreateObject("Excel.Application")&lt;BR /&gt;XLApp.Visible = True&lt;BR /&gt;set XLDoc = XLApp.Workbooks.Add&lt;BR /&gt;set XLSheet = XLDoc.Worksheets(1)&lt;BR /&gt;XLSheet.Range("A1")="Hello World!"&lt;BR /&gt;XLSheet.Range("B1").select&lt;BR /&gt;XLSheet.Paste&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Any tips/examples for be greatly appreciate!&lt;BR /&gt;Peter.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 00:15:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148847#M27069</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-07-09T00:15:22Z</dc:date>
    </item>
    <item>
      <title>Excel API - simple formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148848#M27070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;The very simplest way to find out how to do anything in Excel is to start recording a Macro, do what you want to do in Excel, stop recording then look at the code that has been generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 00:53:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148848#M27070</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2009-07-09T00:53:41Z</dc:date>
    </item>
    <item>
      <title>Excel API - simple formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148849#M27071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter this is the code i am using in one of the application and it works for me , try it out and let me know if you wount understand anything.&lt;/P&gt;&lt;P&gt;&lt;B&gt;Sub Export_To_Excel&lt;BR /&gt; Const xlShiftDown = -4121&lt;/B&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Set oShell = CreateObject("WScript.Shell")&lt;BR /&gt; set fso = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;&lt;BR /&gt; set C = ActiveDocument.Variables("Rep_Condition")&lt;BR /&gt; if C.GetContent.string = "1" then&lt;BR /&gt; set obj = ActiveDocument.getSheetObject("CH1")&lt;BR /&gt; else&lt;BR /&gt; set obj = ActiveDocument.getSheetObject("CH2")&lt;BR /&gt; end if&lt;BR /&gt;&lt;BR /&gt; set XLApp = CreateObject("Excel.Application")&lt;BR /&gt; XLApp.Visible = True&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Application.Sleep(1000)&lt;BR /&gt;&lt;BR /&gt; ' msgbox path&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; obj.sendToExcel&lt;BR /&gt;&lt;BR /&gt; set XLDoc = XLApp.Workbooks.item(1)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Set objRange = XLApp.Cells(1, 1).EntireRow&lt;BR /&gt; objRange.Insert(xlShiftDown)&lt;/P&gt;&lt;P&gt;Set objRange = XLApp.Cells(2, 1).EntireRow&lt;BR /&gt; objRange.Insert(xlShiftDown)&lt;BR /&gt;&lt;BR /&gt; ActiveDocument.GetSheetObject("TX1").CopyTextToClipboard&lt;BR /&gt; XLApp.Worksheets(1).Range("A1").Select()&lt;BR /&gt; XLApp.Worksheets(1).Paste()&lt;BR /&gt;&lt;BR /&gt; ActiveDocument.GetSheetObject("TX2").CopyTextToClipboard&lt;BR /&gt; XLApp.Worksheets(1).Range("A2").Select()&lt;BR /&gt; XLApp.Worksheets(1).Paste()&lt;BR /&gt;&lt;BR /&gt; XLApp.Worksheets(1).Range("A1").Font.Bold = True&lt;BR /&gt; XLApp.Worksheets(1).Range("A2").Font.Bold = True&lt;/P&gt;&lt;P&gt;XLApp.Worksheets(1).Range("A1").Font.Size = 12&lt;BR /&gt; XLApp.Worksheets(1).Range("A2").Font.Size = 12&lt;BR /&gt;&lt;BR /&gt; XLApp.Worksheets(1).Range("E1").Select()&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Talha&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 02:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148849#M27071</guid>
      <dc:creator />
      <dc:date>2009-07-09T02:38:30Z</dc:date>
    </item>
    <item>
      <title>Excel API - simple formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148850#M27072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Talha,&lt;/P&gt;&lt;P&gt;Thanks for the example, i'm not entirely sure what this command does:&lt;/P&gt;&lt;P&gt;Set objRange = XLApp.Cells(1, 1).EntireRow&lt;BR /&gt; objRange.Insert(xlShiftDown)&lt;/P&gt;&lt;P&gt;Maybe select cell(1,1) and highlight the row, then insert a new row?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XLApp.Worksheets(1).Range("A1").Font.Size = 12&lt;BR /&gt;XLApp.Worksheets(1).Range("A1").Font.Bold = True&lt;/P&gt;&lt;P&gt;These are easy to guess the function, but is there a document or guide that says what you can add to the end of .Font.? and all the other things you can do, i.e underline and change font style.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 15:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148850#M27072</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-07-09T15:01:00Z</dc:date>
    </item>
    <item>
      <title>Excel API - simple formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148851#M27073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;The code that Talha has given you is great but it is only great if it does exactly what you want to do in Excel. To find out how to do exactly what you want to do, you need to do what I suggested - record a macro.&lt;/P&gt;&lt;P&gt;When you press Alt+F11 in Excel, it will open the VBA editor and the help file in there has the full API reference.&lt;/P&gt;&lt;P&gt;One "gotcha" is that Excel VBA includes many constants (e.g. xlShiftDown) which will not be known to the QlikView VBScript engine. You will need to define them as Const in your script or just use the values instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 15:12:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148851#M27073</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2009-07-09T15:12:42Z</dc:date>
    </item>
    <item>
      <title>Excel API - simple formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148852#M27074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter&lt;/P&gt;&lt;P&gt;You're right. That part of the script inserts a new row. I've yet to find a API-guide specifically made for Excel. The most useful stuff until now has been by recording a macro within Excel and use snippets of that script. Otherwise you might find something on msdn.microsoft.com&lt;/P&gt;&lt;P&gt;/Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 15:27:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148852#M27074</guid>
      <dc:creator />
      <dc:date>2009-07-09T15:27:16Z</dc:date>
    </item>
    <item>
      <title>Excel API - simple formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148853#M27075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've figured out how to change the font size, type, bold, underlined.&lt;/P&gt;&lt;P&gt;Next is how to insert the value of a QV variable into my excel document.&lt;BR /&gt;Also i need to try and insert the current selection information, any ideas?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 18:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148853#M27075</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-07-09T18:47:07Z</dc:date>
    </item>
    <item>
      <title>Excel API - simple formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148854#M27076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello Peter,&lt;/P&gt;&lt;P&gt;This lines of code is used to put the cursor on perticular position and then move the cursor down one cell&lt;BR /&gt; Set objRange = XLApp.Cells(1, 1).EntireRow&lt;BR /&gt; objRange.Insert(xlShiftDown)&lt;/P&gt;&lt;P&gt;What i did is downloded the guide from msdn website for vb script there is one good help file&lt;BR /&gt;by the name 'hey scripting guy' -- google it and you can download from msdn&lt;/P&gt;&lt;P&gt;Talha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 19:01:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148854#M27076</guid>
      <dc:creator />
      <dc:date>2009-07-09T19:01:04Z</dc:date>
    </item>
    <item>
      <title>Excel API - simple formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148855#M27077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Talha,&lt;/P&gt;&lt;P&gt;Thanks for the reply, but my question was more todo with how to get some QV variables into Excel, and also how to get the QV current selection information into excel.&lt;/P&gt;&lt;P&gt;All feedback is very welcome, and i plan to write a little guide on basic formating for anyone else to review at a later date.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 19:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148855#M27077</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-07-09T19:13:29Z</dc:date>
    </item>
    <item>
      <title>Excel API - simple formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148856#M27078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Getting variables and selection info is half QlikView macro, half Excel. In Excel, you can use Range to write to a field. To write the contents of a variable, use:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;oSH.Range("A1") = ActiveDocument.Variables("VariableName").GetContent.String&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;Where oSH is the reference to your worksheet. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Getting selections into an Excel file would be similar. For me, I would create a QlikView variable set to GetFieldSelections(FieldName) and then use the code above to write the value of that variable to a field in Excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 20:42:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148856#M27078</guid>
      <dc:creator />
      <dc:date>2009-07-09T20:42:19Z</dc:date>
    </item>
    <item>
      <title>Excel API - simple formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148857#M27079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone!&lt;/P&gt;&lt;P&gt;I can now manipulate the fonts, and insert variables.&lt;BR /&gt;Last bit i'm stuck on is changeing the border and following actions (from a macro i recorded in excel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt; Selection.Borders(xlDiagonalDown).LineStyle = xlNone&lt;BR /&gt; Selection.Borders(xlDiagonalUp).LineStyle = xlNone&lt;BR /&gt; Selection.Borders(xlEdgeLeft).LineStyle = xlNone&lt;BR /&gt; Selection.Borders(xlEdgeTop).LineStyle = xlNone&lt;BR /&gt; Selection.Borders(xlEdgeBottom).LineStyle = xlNone&lt;BR /&gt; Selection.Borders(xlEdgeRight).LineStyle = xlNone&lt;BR /&gt; Selection.Borders(xlInsideVertical).LineStyle = xlNone&lt;BR /&gt; Selection.Borders(xlInsideHorizontal).LineStyle = xlNone&lt;BR /&gt; Selection.Interior.ColorIndex = xlNone&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;How would you edit the above for QV macro to run?&lt;/P&gt;&lt;P&gt;Thanks&amp;lt;&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 22:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148857#M27079</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-07-09T22:37:31Z</dc:date>
    </item>
    <item>
      <title>Excel API - simple formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148858#M27080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm guessing the xl Constants are giving you the problem. I'd just convert them to straight values (although Talha showed how you can define them within QlikView).&lt;/P&gt;&lt;P&gt;Inside Excel, open the VBA editor. Hit F2, which should bring up the object browser. Type each xl Constant into the search box and hit enter. Click on the item in the Members Of box and below that box you should see:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Const xlDiagonalDown = 5&lt;BR /&gt; Member of Excel.XlBordersIndex&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Since xlDiagonalDown = 5 and xlNone = -4142, your first line would be rewritten as:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Selection.Borders(5).LineStyle = -4142&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;In your QlikView macro, you would need to preceed each line with your sheet reference (oSH. in my examples). &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 22:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148858#M27080</guid>
      <dc:creator />
      <dc:date>2009-07-09T22:53:39Z</dc:date>
    </item>
    <item>
      <title>Excel API - simple formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148859#M27081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;This code is really useful. however, I keep getting a subscript out of range error when I try to apply a similar method to my own macro. Any ideas?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 16:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148859#M27081</guid>
      <dc:creator />
      <dc:date>2010-10-26T16:30:21Z</dc:date>
    </item>
    <item>
      <title>Excel API - simple formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148860#M27082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the line that is throwing the error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 16:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148860#M27082</guid>
      <dc:creator />
      <dc:date>2010-10-26T16:32:23Z</dc:date>
    </item>
    <item>
      <title>Excel API - simple formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148861#M27083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry NMiller, the exception/error being thrown up occurs when I try to reference my Worksheet when formatting the cell outlines of the table. I thought by coding:&lt;/P&gt;&lt;P&gt;set s=ActiveDocument.Sheets("tab2")&lt;/P&gt;&lt;P&gt;ActiveDocument.Sheets("tab2").Activate&lt;/P&gt;&lt;P&gt;set XLSheet = XLDOC.Worksheets(2)&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("TB01").Restore&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("TB01").CopyTableToClipboard true&lt;/P&gt;&lt;P&gt;XLSheet.Paste XLSheet.Range("A1")&lt;/P&gt;&lt;P&gt;that i could put the XLSheet prefix before eg:&lt;/P&gt;&lt;P&gt;Selection.Borders(6).LineStyle = -4142, therefore:&lt;/P&gt;&lt;P&gt;XLSheet .Selection.Borders(6).LineStyle = -4142 but i get the error &lt;EM&gt;Object doesn't support this property or method?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The object is a table box so it should support this property?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 16:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148861#M27083</guid>
      <dc:creator />
      <dc:date>2010-10-28T16:24:04Z</dc:date>
    </item>
    <item>
      <title>Excel API - simple formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148862#M27084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excel Automation in QlikView doesn't like the Selection thing. You can't use XLSheet.Range("A3").Select and you can't use XLSheet.Selection... I think you may have to refer to a specific cell. You may also be able to use a pre-defined range, but I'm not too sure.&lt;/P&gt;&lt;P&gt;What you need to do is something like:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;XLSheet.Range("A3").Borders(6).LineStyle = -4142&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I can't figure out what you're trying to do there though. That line would say set the Diagonal Up border in Cell A3 to have Line Style of None. Is that what you are trying to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 20:08:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148862#M27084</guid>
      <dc:creator />
      <dc:date>2010-10-28T20:08:26Z</dc:date>
    </item>
    <item>
      <title>Excel API - simple formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148863#M27085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, Actually meant to put 7 instead of 6 there which is the edgeleft linestyle as 0.&lt;/P&gt;&lt;P&gt;Thanks alot for your reply!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 09:34:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-API-simple-formatting/m-p/148863#M27085</guid>
      <dc:creator />
      <dc:date>2010-10-29T09:34:59Z</dc:date>
    </item>
  </channel>
</rss>

