Document Title On new Documents Vs Save Name

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

OHM \( Terry Burns \)

Hi Peeps,

I some code which runs on the New Event for a document, amongst other things
it sets the Built in property for Documents Title. This works

However, when I try to save the new document, I would have expected it to
use the Title property, instead it comes up with the word 'This'.

Now if I open the properties box and then Ok it, when I now try to save it
used the Title property,

How can I get around this ?


Cheers





--
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))
--
 
O

OHM \( Terry Burns \)

Can someone tell me where to set the following in vb code please

When you open up the document properties. There is a tab called contents in
a blank document the word Title appears, and this can have entries below it.

What does this tab represent
How to access the contents programatically


TIA




--
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))
 
F

Flemming Dahl

Hi Terry

Try right click the Contents frame and read that this frame will show you
the headings you have in you document if you on the Summery Tab has marked
Save Preview Picture.

Create a document with one or more headings and see the result.

I can not find the connection to the information through vba, but you can
run thourgh your document and find the headings if you need to.

Cheers,
Flemming


OHM ( Terry Burns ) said:
Can someone tell me where to set the following in vb code please

When you open up the document properties. There is a tab called contents in
a blank document the word Title appears, and this can have entries below it.

What does this tab represent
How to access the contents programatically


TIA




--
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))
--
 
W

Word Heretic

G'day "OHM \( Terry Burns \)" <[email protected]>,

You can use the dialog itself from VBA to set a number of document
properties at once without that blasted "Recalc word count" business
occuring each var. This may yield success for you.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


OHM ( Terry Burns ) reckoned:
 

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


Top