Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create code module Word 2007

Status
Not open for further replies.

Tranman

Programmer
Sep 25, 2001
695
US
VB6
Office 2007

I have a VB6 program that builds fairly complex Word documents.

The documents contain:
Normal text
Hyperlinks to documents stored in a Filenet image archive
Command buttons that delete rows from an Oracle database,
and also update a SQL Server database
Various Subs and Functions for control events and database
updating

Everything worked fine with Office XP--the program inserted the hyperlinks, the command buttons, the event procedures for the command buttons, and the boilerplate for the database updates, with no problems.

BUT, when i 'upgraded' to Office 2007, the code modules disappeared. I fought it a pretty hard fight, and the only way I found to get the program to save the documents with the code modules intact, was to save the documents as the old version:

doc.SaveAs strOutFN, wdFormatDocument97

My preference would be to create the Word documents in the new format, instead of the old one.

Any suggestions?

Tranman

"Adam was not alone in the Garden of Eden, however,...much is due to Eve, the first woman, and Satan, the first consultant." Mark Twain
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top