This content has been marked as final. Show 3 replies
> I am scripting InDesign CS2 using VBA (the last one left in the universe?).
what you mean ?? ;)
I suppose the document settings wins over the application settings. Try change the viewPreferences for the document. These property exists for the document as well:
myDocument.ViewPreferences.ShowRulers = False
myDocument.ViewPreferences.HorizontalMeasurementUnits = idMillimeters
myDocument.ViewPreferences.VerticalMeasurementUnits = idMillimeters
That comment was meant to be a joke. It looks as if most of the scripters on the forum are now using Java and CS3. I have not done any scripting in a few years and don't know Java (and haven't upgraded to CS3) so I was wondering how many people would be around who still use VB.
Thanks for your comment. You are exactly right and have solved my problem. When I change the preferences for the document instead of the application, everything works. Not sure why I missed the document view preferences before but these things happen. Thanks again.