In VBS you can execute a string to run as code.
Here is an example:
I am trying to make a AD interface in excel 2007(per a user request).Code:strTest = "msgbox " & chr(34) & "Test." & chr(34)
execute strTest
I would like to make it dynamic in that users can select what attributes they want to see.
So, for example they can enter in cn (which returns the user's name) as one of the attributes they want. A simplified example of what I would like to do is:
Since execute isn't part of VBA, how do I do this please?Code:strAttribute = Sheets("Control").Range("a1")
execute "strUserAttribute = objUser." & strAttribute
msgbox strUserAttribute
Thanks,
-Jeremy

