April 5, 2017 at 8:04 am
Hello,
Maybe someone will help me.
Dim appword As Word.Application
In References is Microsoft office 12 object library activited, but Word.Application doesnt work.
Where can be a problem? I use ms office 2007.
Thx.
April 5, 2017 at 8:14 am
peter478 - Wednesday, April 5, 2017 8:04 AMHello,
Maybe someone will help me.Dim appword As Word.Application
In References is Microsoft office 12 object library activited, but Word.Application doesnt work.
Where can be a problem? I use ms office 2007.
Thx.
Can you define "doesnt work"? Do you get an error message? Sharing that error message would help others know what the problem is. As posted there is nothing we can do to help.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
April 5, 2017 at 8:18 am
compile error: User-defined type not defined
April 5, 2017 at 8:48 am
You first need to define WordApp as an "object" and then set that object to be a Word using the CreateObject command. Since you are tinkering with automation the tutorial Automation 101 may be of value to you. (You will also need to know the object model for Microsoft Word 2007.)
Wendell
Colorful Colorado
You can't see the view if you don't climb the mountain!
April 6, 2017 at 5:23 am
Thank you very much.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply