ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Problem with creating a Word Document (https://www.excelbanter.com/excel-programming/277673-problem-creating-word-document.html)

Jens 'Kluesi' Kluesener

Problem with creating a Word Document
 
Hi

At this time I create a Word document like this:

Dim appWord As Object
Set appWord = CreateObject("Word.Document")

appWord.Application.Documents.Add Template:=...

I can modify this Document with appWord.Application.ActiveDocument...

yesterday I tried this:

Dim myDoc As Word.Document

Here (I think so) I also get a new Document. How can I create a new
Document with a Template File (*.dot)?

Many thanks

Jens


All times are GMT +1. The time now is 08:34 AM.

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