Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Controlling Word template from Excel
I have an Excel add-in from which I can open a Word
template and insert info from the Excel workbook. I am trying to insert AutoText that is saved in the template, but I can't find the right syntax. This is what I have written: Dim WordApp As Word.Application Set WordApp = CreateObject("word.application") WordApp.Visible = True With WordApp Documents.Add Template:= _ "C:\Documents and Settings\all users\Templates\rxtemptest.dot" _ , NewTemplate:=False, DocumentType:=0 WordApp.Selection.Goto what:=wdGoToBookmark, Name:="PlaceMark" WordApp.Selection.Insert("temp1").InsertAutoText Whe=Selection.Range, _ RichText:=True End With What am I doing wrong? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Is there a day timer template in word or excel? | Excel Discussion (Misc queries) | |||
Controlling word wrap in a cell | Excel Discussion (Misc queries) | |||
How can I link between a Word template and an Excel template | Excel Discussion (Misc queries) | |||
Opening a Word template from excel | Excel Discussion (Misc queries) | |||
Sending from excel to word template | Excel Discussion (Misc queries) |