Ask the Expert

Executing VBScript inside a C# program

I would like to execute some VBScript inside my C# program. Can you create the VB script shell and then run script code against it? Any examples would be helpful.
Yes, you can use VSA (Visual Basic for Applications) to execute scripts inside a .NET application. Here are two previously published articles on this topic; both are excellent sources for getting your feet wet with VSA:
Script Happens .NET by Andrew Clinick
Scripting and .NET by Chris Sells

This was first published in October 2004