-
Hi,
I have 2 projects open. ie..I created a project and then I went to File-> Add Project->Standard EXE and this way I have 2 projects.
Now, I have a Public Function in Project1 that I want to access in Project2. What is the correct syntax?
I tried:
Call Project1.MyFunction
But I got an error message saying "Object Required" on that line of code.
Any help appreciated
Zack
-
I honestly didn't think you could do that, although maybe you can. I thought that having two projects open meant only that, that they are still independent of one another. At any rate, you can get around this by just combining them into one project!
-
Combine Them
Yeah, I think that combining the project is the best and the cleanest solution. Or at least copying the function that you need into both programs. Why do you want to access another program's code?? Just wondering...