<?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 Copy and paste objects - macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Copy-and-paste-objects-macro/m-p/197938#M504080</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;&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 style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Hello,&lt;/P&gt;&lt;P style="font-weight: bold"&gt;What I did was:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Set conn = CreateObject("ADODB.Connection")&lt;BR /&gt; Set rs = CreateObject("ADODB.Recordset")&lt;/P&gt;&lt;P style="font-weight: bold"&gt;' String connection&lt;BR /&gt;strConn = "Provider=sqloledb;Data Source=LOCALHOST;Initial Catalog=QlikView;Integrated Security=SSPI;"&lt;/P&gt;&lt;P style="font-weight: bold"&gt;' Open the connection&lt;BR /&gt;conn.Open strConn&lt;/P&gt;&lt;P style="font-weight: bold"&gt;parameter1= xxxx&lt;/P&gt;&lt;P style="font-weight: bold"&gt;parameter2= yyyyy&lt;/P&gt;&lt;P style="font-weight: bold"&gt;' Execute the stored procedure&lt;BR /&gt;sqlQuery = "EXEC StoredProcedureName " &amp;amp; parameter1&lt;BR /&gt;rs.Open sqlQuery, conn, adOpenForwardOnly&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Steve&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2010 03:04:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-02-10T03:04:03Z</dc:date>
    <item>
      <title>Copy and paste objects - macro</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-and-paste-objects-macro/m-p/197936#M504078</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'm creating (or trying to create) a macro that has to do the following:&lt;BR /&gt;1. execute a stored procedure which returns a list of qvw file names and their location.&lt;BR /&gt;2. open a qvw file (one at a time) - each qvw file has only one sheet.&lt;BR /&gt;3. select (activate) all objects contained in the sheet and copy them.&lt;BR /&gt;4. create a new qvw file.&lt;BR /&gt;5. create (add) a new sheet (for each qvw file open in the step 1) and paste the copied objects.&lt;BR /&gt;6. repeat step 2, but I will paste the copied objects in the same new qvw file, but in different sheets.&lt;/P&gt;&lt;P&gt;Basically, I'm stuck in step 3, 'cause I dont´t know how to copy and then paste the objects in a qvw file.&lt;BR /&gt;I hope you can help with this.&lt;BR /&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 22:32:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-and-paste-objects-macro/m-p/197936#M504078</guid>
      <dc:creator />
      <dc:date>2009-12-29T22:32:47Z</dc:date>
    </item>
    <item>
      <title>Copy and paste objects - macro</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-and-paste-objects-macro/m-p/197937#M504079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;I am trying to create a macro that will execute a stored procedure , can you tell me how you did step 1?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks in Advance&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 16:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-and-paste-objects-macro/m-p/197937#M504079</guid>
      <dc:creator />
      <dc:date>2010-02-09T16:45:18Z</dc:date>
    </item>
    <item>
      <title>Copy and paste objects - macro</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-and-paste-objects-macro/m-p/197938#M504080</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;&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 style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Hello,&lt;/P&gt;&lt;P style="font-weight: bold"&gt;What I did was:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Set conn = CreateObject("ADODB.Connection")&lt;BR /&gt; Set rs = CreateObject("ADODB.Recordset")&lt;/P&gt;&lt;P style="font-weight: bold"&gt;' String connection&lt;BR /&gt;strConn = "Provider=sqloledb;Data Source=LOCALHOST;Initial Catalog=QlikView;Integrated Security=SSPI;"&lt;/P&gt;&lt;P style="font-weight: bold"&gt;' Open the connection&lt;BR /&gt;conn.Open strConn&lt;/P&gt;&lt;P style="font-weight: bold"&gt;parameter1= xxxx&lt;/P&gt;&lt;P style="font-weight: bold"&gt;parameter2= yyyyy&lt;/P&gt;&lt;P style="font-weight: bold"&gt;' Execute the stored procedure&lt;BR /&gt;sqlQuery = "EXEC StoredProcedureName " &amp;amp; parameter1&lt;BR /&gt;rs.Open sqlQuery, conn, adOpenForwardOnly&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Steve&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 03:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-and-paste-objects-macro/m-p/197938#M504080</guid>
      <dc:creator />
      <dc:date>2010-02-10T03:04:03Z</dc:date>
    </item>
  </channel>
</rss>

