What are the units for form widths and heights in VBA?
问题 I'm programming VBA for Word 2007. I've created a UserForm which I need to resize with script. I noticed that its not pixels Me.Width = pixelW // form appears about 20% larger than the pixel width And its not twips either Me.Width = (((1 / TwipsPerPixelX()) * pixelW)) / 1) // form appears very small So how are form widths and heights measured in Office 2007 VBA? 回答1: When manipulating controls on forms through code the sizes are in twips by default (I believe if you change the form's