VBA equivalent to C# using or VB.NET imports / creating aliases
Base Reference: Ten Code Conversions for VBA, Visual Basic .NET, and C# Note: I have already created and imported a *.dll , this question is about aliases . Let's say the programmatic name of a Test class is TestNameSpace.Test [ProgId("TestNamespace.Test")] public class Test ... Now, say a C# solution has been sealed and compiled into a *.dll and I'm referencing it in a Excel's VBE. Note: at this point I cannot modify the programmatic name as if the *.dll wasn't written by me. This is in VBA : Instead of declaring a variable like this: Dim myTest As TestNameSpace.Test Set myTest = new