Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am changing User Parameters in a macro and the there are conversion errors that I can't figure out! please help.
Here is my code.
Sub setR()
Dim UserParams As UserParameters
Set UserParams = ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters
For Each Item In UserParams
Item.Value = 1
Next
End Sub
When the program is run the value set for each User Parameter is 0.39370079 in. It doesn't mater if the document parameters are set to "inch" or "mm". I'm pretty sure that it is a rounding error because .3937 * 2.54 = 1 which is a metric to inch conversion.
Solved! Go to Solution.