It is a Friday and I appear to have low firing neurons today. I believe the following should be simple, but I am not seeing it?
I have a function in every VBA project:
Public Function GetVersion() As String GetVersion = strVersionEnd Function
I then created a single utility to get version numbers for all vba projects.
Lets say I have a vba project called "myproject" and via a loop, this is loaded into a local variable, such that PrjName = "myproject"
The following code line returns the concatented string:
ProjectVersion = PrjName & ".GetVersion"Debug.Print "Version: " & ProjectVersion
However, I actually want the value from this string combination. How can I get the value?
For Example; this code directly reads the value of a variable from a vba project as required:
ProjectVersion = myproject.GetVersion
http://communities.bentley.com/products/microstation/microstation_programming/f/343173/p/91496/262350.aspx#262350