Project compilation from VBA

Project compilation from VBA

Hello.
Please help.
I have to compile my SCADA-project from VBA-macro in Editor mode.
I tried to do this with a method described below ( I've found this method in the SCADA help).
But it doesn't work and falls out with error 748 "Method or property is not valid in this type of project"
The method:
MyWorkspace.VBE.VBProjects.Item("MyProject").MakeCompiledFile
What have I to do to? :confused:

This is a migrated post! Originally posted on 07.09.2010 by user olga. Please be aware that information can be outdated.