24 points · by n013 · 11mo ago · 10 comments
VBA (Excel) based wrapper for Chrome Developer Protocol (CDP) - sorta a VBA version of Puppeteer/Selenium
It's ok to store code in tables and then pass it to VBA for evaluation via Eval, or to ASF via the engine.Compile
Public Sub AppendCode() Dim cm As Object Set cm = Application.VBE.VBProjects(1).VBComponents("GeneratedLogic").CodeModule
cm.InsertLines cm.CountOfLines + 1, _
"Public Sub NewProc()" & vbCrLf & _
" MsgBox ""Dynamically added""" & vbCrLf & _
"End Sub"
End SubBut... what is effectively eval() just in VB? Yikes.