n013
Joined 2 years ago
Karma
27
Submissions
11
Member since
Feb 16
Joined 2 years ago
Sub RunModule() Dim eng As New ASF
' Set working directory
eng.InjectVariable "wd", ThisWorkbook.Path
' Execute module file
Dim result As Variant
result = eng.Execute(ThisWorkbook.Path & "\main.vas")
Debug.Print result
End SubASF isn't just a framework, is a modern language that we can run inside VBA.
This is exactly the argument used for deprecating a so powerful language, but It's all a Microsoft marketing strategy. Organizations creating and running only their workbooks are equally enforced to shutting down VBA, Why? Because VBA doesn't pay Microsoft rent.