Tearing Hair Out

  • Thread starter OHM \( Terry Burns \)
  • Start date
O

OHM \( Terry Burns \)

This is slightly off topic I know but Im tearing my hair out and have not
had any real luck in the word newsgroups.

Word 2003, Windows XP

Code runs on new document which sets text from a userForm at various
bookmarks I have set up. Receipients address, Subject Line, and Dear ??? etc
all basic stuff.

It then goes on to set the ActiveDocument.BuiltInProperties("Title").value
to the same as the Subject line. This is in order to force word to use this
as the default name when saving . The problem is that when you set this
programitically, in order for it to take effect in this respect you seem to
have to open up the properties and then OK it.

So, there is a Content tab on the properties dialog, this seems to contain a
single entry called "This" ( Same as the default title name ), which gets
altered to the correct Title value once OK's.

It only seems to happen when you fave fired off the new document event.

Does anyone know how to get around this infuriating problem, Ive been
working on this for hours now.

Regards - Terry




--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
 
G

Guest

Terry,

Once you have set your properties you need to make the
UpdateSummaryProperties() call.

Keith DuPont
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Threading 16
OT - Good Ideas ? 3
This Group, what more do we need ? 19
Threading Performance 7
Enumerations And Random Numbers 38
Why Does This Fail ( Threading ) 17
How to tell if a document is new ? 5
Details Vs Thumnails 7

Top