471,348 Members | 1,455 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

Open word document based on template

Hi All,
I have a template with some VBA code behind and some controls on it
such as combo boxes.
When I try to create a new document based on this template from C# code
it opens fine but the controls are in design mode and the VBA code
behind doesnt run.

oDoc = oWord.Documents.Add(ref oTemplate, ref oMissing, ref oMissing,
ref oMissing);

Is there any other way to do this so the new document is not in design


Dec 21 '05 #1
0 1579

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Raj Singh | last post: by
10 posts views Thread by Antoine De Groote | last post: by
7 posts views Thread by Peter | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.