Some users of the Army’s Electronic Benchbook have reported an unusual error message:
I’ve traced the problem to an error in the code that appears when using the 64-bit version of Microsoft Word. You can correct this problem yourself in just a few easy steps. Keep reading for an illustrated step-by-step guide to solve the problem.
Step 1: Open the Benchbook in Word. It is not necessary to enable macros.
Step 2: Hold down the Alt key and press F11. The Visual Basic for Applications window will open.
On the left you will see a navigation menu; click the + icon next to Benchbook2010TD (Benchbook2012) to expand the menu. Then do the same for Modules. Finally, double-click on CBB.
Note: If the windows that opens looks like the below image instead, don’t panic. Just click on the – icon next to Forms (circled below), then click the + icon next to Modules, followed by a double-click on CBB.
Step 3: You’re now looking at the code for the Electronic Benchbook. The text in red (circled below) is the problem. It is a 32-bit function that doesn’t work in the 64-bit version of Word without some correction.
Step 4: You’re going to edit the first line in red.
It says: Private Declare Function GetPrivateProfileString _
It needs to say: Private Declare PtrSafe Function GetPrivateProfileString _
Don’t worry about capitalization (it will auto-correct). Just click the text between “Declare” and “Function” and type in “ptrsafe” (no quotes, obviously). The text will change from red to a combination of blue and black to indicate that the function is now valid.
You will then be prompted to save the changes and discard the digital signature. Do that too.
Open the Electronic Benchbook again and give it a testdrive. It should work normally.