autoexec/autonew/customdocument properties 
Author Message
 autoexec/autonew/customdocument properties

Hi,
        looking for some advice on project in Word 2000.
I'm using autoexec to show form allowing users a selection
which dictates which template combination is
loaded/unloaded each time they start a session.
I simply want each new document to setup customdocument
properties so have put a routine in "autonew" which
contains several lines like this:
    ActiveDocument.CustomDocumentProperties.Add
Name:="StoryName", LinkToContent:=False, Value:=thename,
Type:=msoPropertyTypeString

Other routines use user forms to populate these fields and
the content may change many times.  I opted to add the
properties to each new document when it is created and
found it too complex to test whether they exisited before
setting/changing them with the "value", eg:

ActiveDocument.CustomDocumentProperties("StoryName").Value
= thename

It may be clumsy but it works but I have the problem that
when Word is started, the new "Document 1" does not have
the document properties added.  I thought perhaps
my "autoexec" could close the first document and create a
new one which fits the bill.
Using autoexec is not an option as it spits the dummy
trying to "add" the properties to an existing document.
Any advice appreciated.

Regards
Alan Black  (VBA newbie and loving it ...)



Sun, 01 May 2005 17:43:05 GMT  
 autoexec/autonew/customdocument properties
Hi Alan,

Quote:
> It may be clumsy but it works but I have the problem that
> when Word is started, the new "Document 1" does not have
> the document properties added.  I thought perhaps
> my "autoexec" could close the first document and create a
> new one which fits the bill.
> Using autoexec is not an option as it spits the dummy
> trying to "add" the properties to an existing document.
> Any advice appreciated.

These paragraphs aren't making any sense. It's a typo, I'm
certain (autoexec can't be both good and bad?), but it makes
it difficult to understand what you mean.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister
http://www.mvps.org/word
http://go.compuserve.com/MSOfficeForum

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:-)



Mon, 09 May 2005 19:08:45 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Custom Properties AutoNew User Form

2. DIRE NEED OF HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

3. HIDDEN FILE....PS..................................................................................................

4. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!ATTENTION!!!!!!!!!!!!!!!!!!!!!!!!!!!

5. Closing down .............................................................................................................

6. Document Properties-MSOPropertyTypeString

7. Can anyone help me with information(wdVerticalPosition) property

8. Document Properties-MSOPropertyTypeString

9. using System.Web.UI.CssStyleCollection as a control property type

 

 
Powered by phpBB® Forum Software