Recently, one of my macros quit working. Not sure exactly when, and I can’t figure out why.
I’m using this line in a macro:
vPageWidth = ActiveDocument.PageSetup.PageWidth
I’ve set up vPageWidth as a String (not sure if that’s correct, but it’s worked for a year now that way).
When the macro runs, vPageWidth becomes “999999”. I then use vPathWidth in an equation to figure out margins (I’m also grabbing margin info which comes as “999999”.
A few lines down in the macro, I get an error that values have to be between -1549 pt and 1549 pts (which I assume is the maximum size for a page).
Why would this stop working all of a sudden? Has something changed in Word to make this different? Or do I just have it set up wrong (which is strange, cause like I said it worked for a year).
Thanks!
-Rich Belthoff