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
 
Top