Execute pCommands
Execute will take a command-string, compile it and execute the command. The command can be a multi-line set of commands. Execute does not return a value.
Dim lCommand As String = "" _
& "Dim lCount" & vbCrLf _
& "For lCount = 1 To 10" & vbCrLf _
& " SendDebug lCount" & vbCrLf _
& "Next"
Execute lCommand 'Will print number 1 to 10 in the debug window