<?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 Microsoft, Visual Basic, Office program, how to get a reference from a Word created by a macro ?? in Operating System - Microsoft</title>
    <link>https://community.hpe.com/t5/operating-system-microsoft/microsoft-visual-basic-office-program-how-to-get-a-reference/m-p/2492523#M1114</link>
    <description>Hello hp experts:&lt;BR /&gt;&lt;BR /&gt;Does anyone know how can I get a reference for a Word.Document which is created by a microsoft built-in macro ?  so that I can make some modification to that Word once I get a reference to it.  &lt;BR /&gt;&lt;BR /&gt;The thing is this:&lt;BR /&gt;In Visual Basic,&lt;BR /&gt;if you got &lt;BR /&gt;&lt;BR /&gt;'-------------------------------&lt;BR /&gt;Dim pt As New PowerPoint.Application&lt;BR /&gt;pt.Commandbars.FindControl(Id:=684).Execute&lt;BR /&gt;'-------------------------------&lt;BR /&gt;&lt;BR /&gt;It will open a Power Point file and pop out a window that let you choose the options and then it will convert that Power Point file to Word document. That newly created Word document will show as "Document1".  but I need to make some modification to that file, so I need to get a reference to that newly created Word document.  I try &lt;BR /&gt;&lt;BR /&gt;Dim wordtest As Word.Document&lt;BR /&gt;Set wordtest = GetObject( , "Word.Document")&lt;BR /&gt;&lt;BR /&gt;and it does not work.  Does any one know how to get a reference for that newly created word document ?  Thank you very much for your help.&lt;BR /&gt;&lt;BR /&gt;Sincerely,&lt;BR /&gt;&lt;BR /&gt;Nathan&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 12 Feb 2001 15:58:33 GMT</pubDate>
    <dc:creator>Yu-Kang Tsao</dc:creator>
    <dc:date>2001-02-12T15:58:33Z</dc:date>
    <item>
      <title>Microsoft, Visual Basic, Office program, how to get a reference from a Word created by a macro ??</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/microsoft-visual-basic-office-program-how-to-get-a-reference/m-p/2492523#M1114</link>
      <description>Hello hp experts:&lt;BR /&gt;&lt;BR /&gt;Does anyone know how can I get a reference for a Word.Document which is created by a microsoft built-in macro ?  so that I can make some modification to that Word once I get a reference to it.  &lt;BR /&gt;&lt;BR /&gt;The thing is this:&lt;BR /&gt;In Visual Basic,&lt;BR /&gt;if you got &lt;BR /&gt;&lt;BR /&gt;'-------------------------------&lt;BR /&gt;Dim pt As New PowerPoint.Application&lt;BR /&gt;pt.Commandbars.FindControl(Id:=684).Execute&lt;BR /&gt;'-------------------------------&lt;BR /&gt;&lt;BR /&gt;It will open a Power Point file and pop out a window that let you choose the options and then it will convert that Power Point file to Word document. That newly created Word document will show as "Document1".  but I need to make some modification to that file, so I need to get a reference to that newly created Word document.  I try &lt;BR /&gt;&lt;BR /&gt;Dim wordtest As Word.Document&lt;BR /&gt;Set wordtest = GetObject( , "Word.Document")&lt;BR /&gt;&lt;BR /&gt;and it does not work.  Does any one know how to get a reference for that newly created word document ?  Thank you very much for your help.&lt;BR /&gt;&lt;BR /&gt;Sincerely,&lt;BR /&gt;&lt;BR /&gt;Nathan&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Feb 2001 15:58:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/microsoft-visual-basic-office-program-how-to-get-a-reference/m-p/2492523#M1114</guid>
      <dc:creator>Yu-Kang Tsao</dc:creator>
      <dc:date>2001-02-12T15:58:33Z</dc:date>
    </item>
  </channel>
</rss>

