Microsoft KB Archive/906308

= You receive the &quot;Invalid procedure call or argument&quot; error message when you use the Legal Pleading Wizard in Word 2003 =

Article ID: 906308

Article Last Modified on 3/23/2006

-

APPLIES TO


 * Microsoft Office Word 2003

-





Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SUMMARY
''This article describes an error message that you may receive when you use the Legal Pleading Wizard in Microsoft Office Word 2003. This problem occurs if the  and   registry subkeys for Word 2003 are corrupted. To resolve this problem, you must remove these two registry subkeys. Word 2003 rebuilds these two registry subkeys by using the default settings the next time that you start the program.''



SYMPTOMS
When you click Finish to complete the steps that are in the Legal Pleading Wizard in Microsoft Office Word 2003, you receive an error message that is similar to the following:

Invalid procedure call or argument

Additionally, the document that you tried to create by using the Legal Pleading Wizard is not saved.



CAUSE
This issue occurs if the following registry subkeys are corrupted:



RESOLUTION
To resolve this issue, delete the two registry subkeys that are described in the &quot;Cause&quot; section before you run the Legal Pleading Wizard. To delete the registry subkeys, use one of the following methods.

The Support Template is a troubleshooting utility that is available in Microsoft Word. The Support Template is installed when you use the Complete Setup option to install Word 2003. f you used the Upgrade option or the Typical Setup option to install Microsoft Word, the Support Template is not installed.

You can use the Support Template to remove the  and   registry subkeys. However, you must follow these steps in this order before you can use the Support Template to remove the  and   registry subkeys:
 * 1) Install the Support Template.
 * 2) Create a shortcut for the Support Template.

However, the Support Template may have already been installed. Additionally, a shortcut to run the Support Template may already exist. In this case, go to the &quot;Delete the Data registry subkey&quot; section.

Note In case you want to restore the original settings, the Support Template creates a backup of the  and   registry subkeys.

Install the Support Template
To install the Support Template, follow these steps:  Click Start, and then click Control Panel. Click Add or Remove Programs. Click Change or Remove Programs. In the Currently installed programs list, click your version of Microsoft Office 2003, and then click Change. Click Add or Remove Features, and then click Next.</li> In Custom Setup, click to select the Choose advanced customization of applications check box, and then click Next.</li> In the Choose update options for applications and tools list, follow these steps: <ol style="list-style-type: lower-alpha;"> Expand Microsoft Office Word.</li> Expand Wizards and Templates.</li> Click the More Templates and Macros icon, and then click Run all from my computer.</li></ol> </li> Click Update to install the Support Template.</li></ol>

Create a shortcut to the Support Template
To create a shortcut to the Support Template, follow these steps: <ol> Right-click anywhere on your desktop, point to New, and then click Shortcut.</li> Click Browse.</li> In the Create Shortcut dialog box, click anywhere in the Type the location of the item box, and then type the following default path statement:

&quot;C:\Program Files\Microsoft Office\Office11\Winword.exe&quot; /a&quot;C:\Program Files\Microsoft Office\Office11\Macros\Support.dot&quot;

Note If you installed Word in a different location, change the default path accordingly.</li> Click Next to continue.</li> In the Type a name for this shortcut box, type Support Template, and then click Finish.</li></ol>

Delete the Data registry subkey
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

Most of the frequently used options for Word are stored in the  registry subkey. To view these options, click Options on the Tools menu. After you delete the  registry subkey, Word rebuilds this   registry subkey by using the default settings the next time that you start Word.

Note If you delete the  registry subkey, Word resets several options back to their default settings. An example of these options is the most recently used file list on the File menu. Additionally, Word resets many settings that you customized in the Options dialog box.

To delete the  registry subkey, follow these steps: <ol> Quit all Microsoft Office programs.</li> Double-click the Support Template shortcut on your desktop.</li> In the Support Template, click Troubleshoot Utility.</li> In the Microsoft Word Troubleshooting Utility dialog box, click Data Registry Key in the Select an Item list, and then click Delete.</li> Click OK when you receive the following message:

HKEY_CURRENT_USER\Software\Microsoft Office\11.0\Word\Data

Backup file for this registry key is present at:

C:\DOCUME~1\username\LOCALS~1\Temp\wddata11.0

Registry key has been deleted.

</li> <li>Click Close.</li> <li>On the File menu, click Exit to quit Word.</li> <li>Start Word.

Note Do not use the Support Template shortcut on your desktop to start Word in step 8.</li></ol>

You may have to change several settings to restore your favorite options in Word. If, for any reason, you want to restore the original  registry subkey, you must follow these steps: <ol> <li>Quit all Office programs.</li> <li>Double-click the Support Template shortcut on your desktop.</li> <li>In the Support Template, click Troubleshoot Utility.</li> <li>In the Microsoft Word Troubleshooting Utility dialog box, click Data Registry Key in the Select an Item list, and then click Restore.</li> <li>Click Yes when you receive the following message:

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Data

This key is present in the registry.

Overwrite it?

</li> <li>Click OK when you receive the following message:

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Data Registry key

restoration successful.

</li> <li>Click Close to close the Microsoft Word Troubleshooting Utility dialog box, and then quit Word.</li></ol>

Delete the Options registry subkey
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

The  registry subkey stores those options that you can set from Word. Examples of these options are changing menu options or running the RegOptions macro. The options are divided into the default settings or the optional settings. Default settings are established during Setup. You can change the default settings by modifying options in Word. Optional settings are not created during Setup.

To delete the  registry subkey, follow these steps. <ol> <li>Quit all Office programs.</li> <li>Double-click the Support Template shortcut on your desktop.</li> <li>In the Support Template, click Troubleshoot Utility.</li> <li>In the Microsoft Word Troubleshooting Utility dialog box, click Options Registry Key in the Select an Item list, and then click Delete.</li> <li>Click OK when you receive the following message:

HKEY_CURRENT_USER\Software\Microsoft Office\11.0\Word\Options

Backup file for this registry key is present at:

C:\DOCUME~1\username\LOCALS~1\Temp\wdoptn11.0

Registry key has been deleted.

</li> <li>Click Close.</li> <li>On the File menu, click Exit to quit Word.</li> <li>Start Word.

Note Do not use the Support Template shortcut on your desktop to start Word in step 8.</li></ol>

You may have to change several settings to restore your favorite options in Word. If, for any reason, you want to restore your original  registry subkey, you must follow these steps: <ol> <li>Quit all Office programs.</li> <li>Double-click the Support Template shortcut on your desktop.</li> <li>In the Support Template, click Troubleshoot Utility.</li> <li>In the Microsoft Word Troubleshooting Utility dialog box, click Options Registry Key in the Select an Item list, and then click Restore.</li> <li>Click Yes when you receive the following message:

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Options

This key is present in the registry.

Overwrite it?

</li> <li>Click OK when you receive the following message:

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Options Registry key

restoration successful.

</li> <li>Click Close to close the Microsoft Word Troubleshooting Utility dialog box, and then quit Word.</li></ol>

Method 2: Manually delete the registry subkeys
You can manually delete the  and   registry subkeys by using Registry Editor.

Note Back up the registry subkeys before you delete them in case you want to restore the original settings.

Manually delete the Data registry subkey
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

Most of the frequently used options that are stored in the  registry subkey. To view these options, click Options on the Tools menu. When you delete the  registry subkey, the next time that you start Word, Word rebuilds this   registry subkey by using the default settings.

Note When you delete the  registry subkey, Word resets several options back to their default settings. An example of these options is the most recently used file list on the File menu. Additionally, Word resets many settings that you customize in the Options dialog box.

To delete the  registry subkey, follow these steps: <ol> <li>Quit all Office programs.</li> <li>Click Start, click Run, and then type regedit in the Open box.</li> <li>Click OK.</li> <li>Locate the following registry subkey in the registry:

</li> <li>Click the Data folder.</li> <li>On the Registry menu, click Export Registry File, type a file name, and then click Save. By default, the .reg file is saved in the My Documents folder.</li> <li>With the Data folder selected, click Delete on the Edit menu.</li> <li>Click Yes when you receive the following message:

Are you sure you want to delete this key?

</li> <li>On the File menu, click Exit to quit Registry Editor.</li> <li>Start Word.

Note Do not use the /a switch to start Word.</li></ol>

You may have to change several settings to restore your favorite options in Word. If, for any reason, you want to restore the original  registry subkey, you must follow these steps: <ol> <li>Locate the .reg file to which you exported the  registry subkey to earlier, and then double-click the .reg file.</li> <li>Click Yes when you receive the following message:

Are you sure you want to add the information in .reg to the registry?

</li></ol>

Manually delete the Options registry subkey
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

The  registry subkey stores those options that you can set from Word. Examples of these options are changing menu options or running the RegOptions macro. The options are divided into the default settings or the optional settings. Default settings are established during Setup. You can change the default settings by modifying options in Word. Optional settings are not created during Setup.

To delete the  registry subkey, follow these steps: <ol> <li>Quit all Office programs.</li> <li>Click Start, click Run, and then type regedit in the Open box.</li> <li>Click OK.</li> <li>Locate the following registry subkey in the registry:

</li> <li>Click Options.</li> <li>On the Registry menu, click Export Registry File, type a file name, and then click Save. By default, the .reg file is saved in the My Documents folder.</li> <li>With the Options folder selected, click Delete on the Edit menu.</li> <li>Click Yes when you receive the following message:

Are you sure you want to delete this key?

</li> <li>On the File menu, click Exit.</li> <li>Start Word.

Note Do not use the /a switch to start Word.</li></ol>

You may have to change several settings to restore your favorite options in Word. If, for any reason, you want to restore the original  registry subkey, you must follow these steps: <ol> <li>Locate the .reg file to which you exported the  registry subkey to earlier, and then double-click the .reg file.</li> <li>Click Yes when you receive the following message:

Are you sure you want to add the information in .reg to the registry?

</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
The registry subkeys may become corrupted if the Legal Pleading Wizard passes a parameter that has one of the following conditions in the procedure call:
 * Parameter is out of range.
 * Parameter contains invalid data,

Alternatively, the Legal Pleading Wizard may have called a procedure at an unexpected time.

<div class="references_section">