close

I would like to create a macro in excel that loads a specific word document
in MSword! Any Ideas?

Try:

Sub Macro1()
x = Shell(quot;cmd.exe /c C:\Userguide.docquot;, 1)
End Sub
--
Gary's Studentquot;Prohockquot; wrote:

gt; I would like to create a macro in excel that loads a specific word document
gt; in MSword! Any Ideas?

Hi Gary, Sorry I am very new to this. How do I set the quot;xquot; variable so that
this can work?

quot;Gary''s Studentquot; wrote:

gt; Try:
gt;
gt; Sub Macro1()
gt; x = Shell(quot;cmd.exe /c C:\Userguide.docquot;, 1)
gt; End Sub
gt; --
gt; Gary's Student
gt;
gt;
gt; quot;Prohockquot; wrote:
gt;
gt; gt; I would like to create a macro in excel that loads a specific word document
gt; gt; in MSword! Any Ideas?

The code will set it.
--
Gary''s Studentquot;Prohockquot; wrote:

gt; Hi Gary, Sorry I am very new to this. How do I set the quot;xquot; variable so that
gt; this can work?
gt;
gt; quot;Gary''s Studentquot; wrote:
gt;
gt; gt; Try:
gt; gt;
gt; gt; Sub Macro1()
gt; gt; x = Shell(quot;cmd.exe /c C:\Userguide.docquot;, 1)
gt; gt; End Sub
gt; gt; --
gt; gt; Gary's Student
gt; gt;
gt; gt;
gt; gt; quot;Prohockquot; wrote:
gt; gt;
gt; gt; gt; I would like to create a macro in excel that loads a specific word document
gt; gt; gt; in MSword! Any Ideas?

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()