Referencing Objects in other VBA Projects

Article ID: 867084 - View products that this article applies to.
Expand all | Collapse all

TechKnowledge Content

Question: Modifier was used to add a button to another vendor's third-party window (ApplicationA dictionary). When the button is pushed, it should open a (ApplicationB dictionary) Dexterity application. When the button is pushed, the error message 424 (Form Not Found or Object Required) is returned. The following statement is being used in the project for the third-party window (ApplicationA): ApplicationB.WindowName.Open

The error message is returned no matter what event procedure is selected for the button object in VBA. How can this be resolved?

Answer:

To resolve this error message, a Reference must be added to the third-party application (ApplicationB) in the project for ApplicationA.

1 - Go to VBA Editor and click on the Tools command from the VBA Editor Command Bar.
2 - Select the References option of the Tools command.
3 - Click on the checkbox for your third-party application (ApplicationB) to which you are interfacing .

There is one situation to avoid:

In your project (ApplicationA), a reference to another project (ApplicationB) can be added. However, once it has been added, another reference can not be made from ApplicationB back to ApplicationA. Basically, the reference is only valid in one direction.

For example, assume the following references have been made in your VBA projects:

Dynamics references ApplicationA
ApplicationA references ApplicationB
ApplicationB references ApplicationC

If this references are made, then the following references would be invalid: ApplicationA to Dynamics, ApplicationB to ApplicationA and ApplicationC to ApplicationB.






This article was TechKnowledge Document ID: 9447

Properties

Article ID: 867084 - Last Review: July 14, 2012 - Revision: 3.0
Applies to
  • Microsoft Dynamics GP 9.0
  • Microsoft Business Solutions–Great Plains 8.0
  • Microsoft Business Solutions–Great Plains 7.5
  • Microsoft Great Plains eEnterprise 7.0
  • Microsoft Great Plains Dynamics 7.0
  • Great Plains eEnterprise 6.0
  • Great Plains Dynamics 6.0
  • Modifier with Visual Basic for Applications
Keywords: 
kbmbsmigrate KB867084

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com