storing value in registry

P

Perry

Peter,

Try to modify CDP's in code using the Dialog/Execute method

Dialog of course the FileProperties dialog.
Y're template will go dirty !!

Krgrds,
Perry
 
P

Perry

Following sequence makes the document go dirty:

Dim d As Dialog
Set d = Dialogs(750)
d.Update
ActiveDocument.CustomDocumentProperties("cdp").Value = "k"


Whereby:
750 is the ID for DocProperties dialog and
docprop "cdp" had any other value besides "k" before calling d.Update

Perry
 
P

Peter Hewett

Hi Perry

That seems perfectly reasonable to me as you're updating the CDP in the
Document!! The original premise was that reading (not writing) the CDP
dirtied the document.

Cheers - Peter
 

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

Top