Settings

Theme

Sandboxed script execution from VBA with support for module system

github.com

1 points by n013 19 days ago · 1 comment

Reader

n013OP 18 days ago

At VBA side the code is clean and highly manageable.

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 Sub

ASF isn't just a framework, is a modern language that we can run inside VBA.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection