When going into run mode the VBA fails to load or when trying to open the VBA Editor and you get an Error Initializing VBA, the most likely reason is your panel/object names as VBA has stricter naming conventions than InteractX itself enforces. If the panel or objects or tags that you 'VBA Enable' don't follow the VBA naming conventions you will get the "Error Initializing VBA" error and be unable to run the VBA code and/or open up the VBA Editor itself.
To correct for this:
1. Close the VBA Editor if it is open.
2. Uncheck the particular 'Enable VBA' option for those panels/objects/tags.
3. Change the panel/object/tag name to comply with the above requirements.
4. Do an overall project save (this forces it to update the underlying files that may still have the old naming referenced)
5. Re-enable those items that need VBA exposure and continue your development, etc.
******************************************************************
Alternatively, there are also some cases where it could be that the Temporary files used by VBA are corrupted.
To clear the temporary files, you need to delete them from Windows Explorer. There is an easy way to find them and get them listed in Explorer.
First close InteractX
Hit the Windows Start button in the bottom left of the desktop screen.
In the Search or Run window (depends on Windows version) type %TEMP% and hit enter.
Find the folder APC and delete it
Find the folder VBE and delete it
Open InteractX and test the project.
If this does not fix the problem and you have a suspicion that the VBA file is corrupted (power fail while editing, Windows crash etc... for sure)
InteractX updates a VBA backup file each time you successfully edit VBA and save the project.
The active VBA file is the ApplicationName.VBA
The Backup is ApplicationName.VBA.BAK
Close InteractX completely then replace the active VBA with the Backup
Rename the .VBA to .VBA.OLD and then take the .BAK off of the backup file name
Then Open InteractX and try opening it in the VBA Editor and make sure it works before trying to go into run mode.
glh Dec 2020 (update for VBA naming conventions)