I’ve been struggling with the peculiarity of maintaining cross platform versions of an add-in. The most annoying problem with programming for both WordX:Mac and Wordxp/2003 is the different default font used in Forms (Tahoma in Windows and Geneva in Mac) — and the resulting incompatibility of forms designed in one OS and then opened in the other.
Then it occured to me: why not redo all the forms using a font I know is common to both OSes. Courier New Bold.
Which might solve a lot of problems.
So here’s the question. Is there a way to programmatically loop through all the objects in a VBA form and change the applied font? I can’t think of anyway to automate this. Perhaps the only method short of brute force is to export to a FRM file and edit that text file and re-import.
Any thoughts apprciated.
p.s. I don’t want to loop at runtime and change the font dynamically each time the form is displayed. That would not solve the problem of form design and spacing. What I want is to change ALL hard coded references to Tahoma to hard coded references to Courier New Bold. Then do the layout and spacing for each form.