Word 2007 templates running in 2010

To date our Word 2007 templates have worked fine in Office Word 2010 with just one exception.

Office 2010 is now available in a 32-bit and 64-bit versions.

By default Office is installed as the 32-bit version. Microsoft  recommend users of Excel with spreadsheets that are larger than 2 gigabytes (GB) install the 64-bit version.

All Word 2007 templates should run in the 32-bit version of Office but we have found that some of our Word 2007 templates need minor slight modifications to the VBA code in the 64 bit version.

All our newly developed or updated templates, created in both Word 2007 and Word 2010, are tested to make sure they work in 64-bit Office 2010.

VBA code modification for 64 bit Office 2010

In a Word template where the 'Declare' statement has been used within the VBA code the template will error when run on 64-bit Word 2010. To solve this problem the following 'If' statement can be used:

<Insert screen image of code here>

This will allow the same template to work in all versions of Word (ie Word 2007, 32-bit and 64-bit Word 2010).

 

Login