tags:

views:

175

answers:

0

I have a VBA UserForm (in a Word document), that has some CheckBox controls inside a Frame control.

All of my CheckBox controls are set to use the Tahoma font (the default for controls), but one of them is showing as Verdana. That is, it says Tahoma in the properties dialog, but the font actually used to display the text is Verdana (both at design time and at run time).

[Now, I should mention that I did mess around with the fonts for a while, and Verdana was one of the fonts I used at one point, but now I've set everything back to Tahoma.]

You're probably thinking - just delete and re-create the CheckBox. Tried that. I also tried copying one of the CheckBoxes that displays correctly. No joy.

Here's the really crazy thing: the CheckBox (or any other CheckBox I create) only shows as Verdana if it's at a particular position on the form. If I move it up or down a couple of notches, it's fine. Any CheckBox I move into this particular position magically shows as Verdana until I move it somewhere else. Unfortunately, I need it to be in that position (and not be Verdana)!

I've battled with this for hours, and tried exporting and re-importing the code, saving as a Word 2007 document (I was originally using 2003), everything I can think of short of re-creating the form from scratch (which I don't want to do, as it's huge).

I presume that there's some sort of corruption of the form, but the saved .frx file is in a binary format, so I can't check (or edit) it.

Anyone seen this problem? Any solutions out there?

EDIT: I said above that the problem CheckBox shows as Verdana. That's not correct. I've established by trial-and-error that it's actually Tahoma - but at 9pt instead of 8pt. Everything else above still holds, but the problem is with the size of the text, not the font face.