LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default Creating and filling a word document from excel VBA

Hi
I just gave you code to look at and see how things are done. I didn't
expect you to try and run it.
It includes segments on opening Word, creating a document, inserting
text, saving the document and so on. Have a read through it and work
out what the bits do.
regards
Paul


On Oct 9, 12:39*pm, Mike H. wrote:
If I try to run one of the functions your link references or if I try to
execute the macro Paul posted, I get the same error message on the line:

Dim wrdApp As Word.Application

The error is: Compile Error. *User-defined type not defined.

I get it that I have to define the type, but I am unsure how to do that. *
Ideas?




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make Excel create and fill another document when filling a HumbleStudent Excel Discussion (Misc queries) 3 August 28th 06 10:41 PM
help creating a macro in excel that opens a specific word document Prohock Excel Discussion (Misc queries) 3 March 30th 06 04:58 PM
What is best method of filling in fields on an MS Word Document? alruff[_2_] Excel Programming 0 October 6th 04 09:19 PM
Creating a Word Document from Excel Data Sheldon Excel Programming 1 September 15th 04 10:10 PM
Problem with creating a Word Document Jens 'Kluesi' Kluesener Excel Programming 0 September 22nd 03 12:04 PM


All times are GMT +1. The time now is 11:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"