A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Formatting Long Documents
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Problems reading Custom Properties with word Macro



 
 
Thread Tools Display Modes
  #1  
Old September 3rd, 2004, 01:33 PM
ILoveInternet
external usenet poster
 
Posts: n/a
Default Problems reading Custom Properties with word Macro

Hi

I have a problem with custom properties and macros in word. I'm
working with a system that keeps track of different versions of word
documents, and the system writes to custom properties each time a new
version of the document is sent to the system.

The documnets have a Macro that reads the Custom Properties and
updates fields in the document header and footer. My problem is that
the macro sometimes dissapaers and so does the Custom Properties. I'm
haven't worked with Macros much, and I do not know where to start. All
clients are using Office XP, and they do allow Word to run Macros.

Is there something I have to look for when I use Macros to read Custom
Properties? Do I have to turn on a special setting? Anything??? I'm
desperate!!

/Emil
  #2  
Old September 4th, 2004, 12:05 AM
Jezebel
external usenet poster
 
Posts: n/a
Default

Can you explain about the macro and properties disappearing? Macros can be
disabled (through security settings), but they don't disappear unless
someone is deleting them. Properties don't disappear either unless someone
is deleting them -- you might consider using Document Variables instead:
these behave in essentially the same way and you can use them in fields, but
they are otherwise hidden from the user.


"ILoveInternet" wrote in message
om...
Hi

I have a problem with custom properties and macros in word. I'm
working with a system that keeps track of different versions of word
documents, and the system writes to custom properties each time a new
version of the document is sent to the system.

The documnets have a Macro that reads the Custom Properties and
updates fields in the document header and footer. My problem is that
the macro sometimes dissapaers and so does the Custom Properties. I'm
haven't worked with Macros much, and I do not know where to start. All
clients are using Office XP, and they do allow Word to run Macros.

Is there something I have to look for when I use Macros to read Custom
Properties? Do I have to turn on a special setting? Anything??? I'm
desperate!!

/Emil



  #3  
Old September 8th, 2004, 08:52 AM
ILoveInternet
external usenet poster
 
Posts: n/a
Default

Hello

The Marco is placed in a .dot-file in a project and opened in the word
document. The word document then has the macro in the file and other
users do not have to have this .dot file to run the macro.

Macros can be
disabled (through security settings), but they don't disappear unless
someone is deleting them.

Is it possible that a anti-virus program can detect the macro and ask
the user if he/she wants to remove it, or are the macros always
disabled?

you might consider using Document Variables instead:
these behave in essentially the same way and you can use them in fields

Can you access the Document Variables from VB or ASP? And do I need
Marcos to update the fields???

Thanks
Emil
  #4  
Old September 8th, 2004, 08:52 AM
ILoveInternet
external usenet poster
 
Posts: n/a
Default

Hello

The Marco is placed in a .dot-file in a project and opened in the word
document. The word document then has the macro in the file and other
users do not have to have this .dot file to run the macro.

Macros can be
disabled (through security settings), but they don't disappear unless
someone is deleting them.

Is it possible that a anti-virus program can detect the macro and ask
the user if he/she wants to remove it, or are the macros always
disabled?

you might consider using Document Variables instead:
these behave in essentially the same way and you can use them in fields

Can you access the Document Variables from VB or ASP? And do I need
Marcos to update the fields???

Thanks
Emil
  #5  
Old September 8th, 2004, 08:52 AM
ILoveInternet
external usenet poster
 
Posts: n/a
Default

Hello

The Marco is placed in a .dot-file in a project and opened in the word
document. The word document then has the macro in the file and other
users do not have to have this .dot file to run the macro.

Macros can be
disabled (through security settings), but they don't disappear unless
someone is deleting them.

Is it possible that a anti-virus program can detect the macro and ask
the user if he/she wants to remove it, or are the macros always
disabled?

you might consider using Document Variables instead:
these behave in essentially the same way and you can use them in fields

Can you access the Document Variables from VB or ASP? And do I need
Marcos to update the fields???

Thanks
Emil
  #6  
Old September 8th, 2004, 08:52 AM
ILoveInternet
external usenet poster
 
Posts: n/a
Default

Hello

The Marco is placed in a .dot-file in a project and opened in the word
document. The word document then has the macro in the file and other
users do not have to have this .dot file to run the macro.

Macros can be
disabled (through security settings), but they don't disappear unless
someone is deleting them.

Is it possible that a anti-virus program can detect the macro and ask
the user if he/she wants to remove it, or are the macros always
disabled?

you might consider using Document Variables instead:
these behave in essentially the same way and you can use them in fields

Can you access the Document Variables from VB or ASP? And do I need
Marcos to update the fields???

Thanks
Emil
  #7  
Old September 8th, 2004, 09:32 AM
ILoveInternet
external usenet poster
 
Posts: n/a
Default

Hello

I have my macro in a .dot file which is a template to the word
document that my customer uses in my system. The Macro updates fields
in the footer in the document. The custom properties are set with the
DSOleFile.PropertyReader object. I never remve a property, only add or
update. Thats why I suspect that they disappeare when a user has the
wrong kind of settings in word.

Is it possible that Word removes a Custom Property due to a setting?

Is it possible that Word removes a Macro? Does Word always only
disable a macro if you do not allow macros, or can you set the
security to automatically remove all macro/custom properties.

Is it possible that a anti-virus program removes a macro (they are
always downloaded from a browser)? I think anit-virus usually
quaranteen/locks the file, and not remove macros.

You mention Document Variables, can they be set from out side of word?
Can they update fields without macros? Can I use Document Variables in
other file-formats than word?


Thanks
Emil


"Jezebel" wrote in message ...
Can you explain about the macro and properties disappearing? Macros can be
disabled (through security settings), but they don't disappear unless
someone is deleting them. Properties don't disappear either unless someone
is deleting them -- you might consider using Document Variables instead:
these behave in essentially the same way and you can use them in fields, but
they are otherwise hidden from the user.


"ILoveInternet" wrote in message
om...
Hi

I have a problem with custom properties and macros in word. I'm
working with a system that keeps track of different versions of word
documents, and the system writes to custom properties each time a new
version of the document is sent to the system.

The documnets have a Macro that reads the Custom Properties and
updates fields in the document header and footer. My problem is that
the macro sometimes dissapaers and so does the Custom Properties. I'm
haven't worked with Macros much, and I do not know where to start. All
clients are using Office XP, and they do allow Word to run Macros.

Is there something I have to look for when I use Macros to read Custom
Properties? Do I have to turn on a special setting? Anything??? I'm
desperate!!

/Emil

  #8  
Old September 8th, 2004, 09:32 AM
ILoveInternet
external usenet poster
 
Posts: n/a
Default

Hello

I have my macro in a .dot file which is a template to the word
document that my customer uses in my system. The Macro updates fields
in the footer in the document. The custom properties are set with the
DSOleFile.PropertyReader object. I never remve a property, only add or
update. Thats why I suspect that they disappeare when a user has the
wrong kind of settings in word.

Is it possible that Word removes a Custom Property due to a setting?

Is it possible that Word removes a Macro? Does Word always only
disable a macro if you do not allow macros, or can you set the
security to automatically remove all macro/custom properties.

Is it possible that a anti-virus program removes a macro (they are
always downloaded from a browser)? I think anit-virus usually
quaranteen/locks the file, and not remove macros.

You mention Document Variables, can they be set from out side of word?
Can they update fields without macros? Can I use Document Variables in
other file-formats than word?


Thanks
Emil


"Jezebel" wrote in message ...
Can you explain about the macro and properties disappearing? Macros can be
disabled (through security settings), but they don't disappear unless
someone is deleting them. Properties don't disappear either unless someone
is deleting them -- you might consider using Document Variables instead:
these behave in essentially the same way and you can use them in fields, but
they are otherwise hidden from the user.


"ILoveInternet" wrote in message
om...
Hi

I have a problem with custom properties and macros in word. I'm
working with a system that keeps track of different versions of word
documents, and the system writes to custom properties each time a new
version of the document is sent to the system.

The documnets have a Macro that reads the Custom Properties and
updates fields in the document header and footer. My problem is that
the macro sometimes dissapaers and so does the Custom Properties. I'm
haven't worked with Macros much, and I do not know where to start. All
clients are using Office XP, and they do allow Word to run Macros.

Is there something I have to look for when I use Macros to read Custom
Properties? Do I have to turn on a special setting? Anything??? I'm
desperate!!

/Emil

  #9  
Old September 8th, 2004, 09:32 AM
ILoveInternet
external usenet poster
 
Posts: n/a
Default

Hello

I have my macro in a .dot file which is a template to the word
document that my customer uses in my system. The Macro updates fields
in the footer in the document. The custom properties are set with the
DSOleFile.PropertyReader object. I never remve a property, only add or
update. Thats why I suspect that they disappeare when a user has the
wrong kind of settings in word.

Is it possible that Word removes a Custom Property due to a setting?

Is it possible that Word removes a Macro? Does Word always only
disable a macro if you do not allow macros, or can you set the
security to automatically remove all macro/custom properties.

Is it possible that a anti-virus program removes a macro (they are
always downloaded from a browser)? I think anit-virus usually
quaranteen/locks the file, and not remove macros.

You mention Document Variables, can they be set from out side of word?
Can they update fields without macros? Can I use Document Variables in
other file-formats than word?


Thanks
Emil


"Jezebel" wrote in message ...
Can you explain about the macro and properties disappearing? Macros can be
disabled (through security settings), but they don't disappear unless
someone is deleting them. Properties don't disappear either unless someone
is deleting them -- you might consider using Document Variables instead:
these behave in essentially the same way and you can use them in fields, but
they are otherwise hidden from the user.


"ILoveInternet" wrote in message
om...
Hi

I have a problem with custom properties and macros in word. I'm
working with a system that keeps track of different versions of word
documents, and the system writes to custom properties each time a new
version of the document is sent to the system.

The documnets have a Macro that reads the Custom Properties and
updates fields in the document header and footer. My problem is that
the macro sometimes dissapaers and so does the Custom Properties. I'm
haven't worked with Macros much, and I do not know where to start. All
clients are using Office XP, and they do allow Word to run Macros.

Is there something I have to look for when I use Macros to read Custom
Properties? Do I have to turn on a special setting? Anything??? I'm
desperate!!

/Emil

  #10  
Old September 8th, 2004, 09:32 AM
ILoveInternet
external usenet poster
 
Posts: n/a
Default

Hello

I have my macro in a .dot file which is a template to the word
document that my customer uses in my system. The Macro updates fields
in the footer in the document. The custom properties are set with the
DSOleFile.PropertyReader object. I never remve a property, only add or
update. Thats why I suspect that they disappeare when a user has the
wrong kind of settings in word.

Is it possible that Word removes a Custom Property due to a setting?

Is it possible that Word removes a Macro? Does Word always only
disable a macro if you do not allow macros, or can you set the
security to automatically remove all macro/custom properties.

Is it possible that a anti-virus program removes a macro (they are
always downloaded from a browser)? I think anit-virus usually
quaranteen/locks the file, and not remove macros.

You mention Document Variables, can they be set from out side of word?
Can they update fields without macros? Can I use Document Variables in
other file-formats than word?


Thanks
Emil


"Jezebel" wrote in message ...
Can you explain about the macro and properties disappearing? Macros can be
disabled (through security settings), but they don't disappear unless
someone is deleting them. Properties don't disappear either unless someone
is deleting them -- you might consider using Document Variables instead:
these behave in essentially the same way and you can use them in fields, but
they are otherwise hidden from the user.


"ILoveInternet" wrote in message
om...
Hi

I have a problem with custom properties and macros in word. I'm
working with a system that keeps track of different versions of word
documents, and the system writes to custom properties each time a new
version of the document is sent to the system.

The documnets have a Macro that reads the Custom Properties and
updates fields in the document header and footer. My problem is that
the macro sometimes dissapaers and so does the Custom Properties. I'm
haven't worked with Macros much, and I do not know where to start. All
clients are using Office XP, and they do allow Word to run Macros.

Is there something I have to look for when I use Macros to read Custom
Properties? Do I have to turn on a special setting? Anything??? I'm
desperate!!

/Emil

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Custom Buttons - How do I delete them Sheila Worksheet Functions 5 June 1st, 2004 02:40 PM
Need a document that pops up a dialog box for user to enter info to merge Bomber Mailmerge 6 May 12th, 2004 01:45 AM
Custom chart problems Jon Peltier Charts and Charting 0 May 5th, 2004 02:13 PM
Save As and changing file names in Word 2000 Gene Goldenfeld New Users 11 May 5th, 2004 04:08 AM
multiple custom spell-check dictionaries with word and powerpoint Steve New Users 1 May 2nd, 2004 10:40 AM


All times are GMT +1. The time now is 07:32 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.