ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Run a Word Macro from Excel (https://www.excelbanter.com/excel-programming/284807-run-word-macro-excel.html)

Rocky McKinley

Run a Word Macro from Excel
 
Hi I need to run a a word procedure from Excel:
MacroName: "letter1"
Procedure Location: "Normal"
Document Name: "ActiveDocument"

Word will already be active with a new Email, addresses, subject already
filled in. I just need to call "letter1" to insert formatted text in the
body of the message.

Thanks in advance,
--
Regards,
Rocky McKinley




Rocky McKinley

Run a Word Macro from Excel
 
I found the answer on Google...

'RUN A WORD MACRO FROM EXCEL WHEN WORD IS ACTIVE
Set WdApp = Word.Application
With WdApp
.Application.Run MacroName:="Normal.NewMacros.letter" & Ans
End With

--
Regards,
Rocky McKinley


"Rocky McKinley" wrote in message
...
Hi I need to run a a word procedure from Excel:
MacroName: "letter1"
Procedure Location: "Normal"
Document Name: "ActiveDocument"

Word will already be active with a new Email, addresses, subject already
filled in. I just need to call "letter1" to insert formatted text in the
body of the message.

Thanks in advance,
--
Regards,
Rocky McKinley







All times are GMT +1. The time now is 05:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com