

VB itself is a development environment the language element of that environment is VBA." Visual Basic for Applications (VBA) is the language used to program in Visual Basic (VB). "Before we go any further, let's just clarify on fundamental point.


In an old VB reference book I came across last year, the author (Paul Lomax) even asserted that 'VBA' has always been the name of the language itself, whether used in stand-alone applications or in embedded contexts (such as MS Office):

The problem I am having is one, it is taking ages and two, how would i include the "" in the script. Objwriter.WriteLine("Dim strIPAddress" & Environment.NewLine & "Dim strSubnetMask" & Environment.NewLine & "Dim strGateWay" & Environment.NewLine & "Dim intGatewayMetric" & Environment.NewLine & "Dim strDns1" & Environment.NewLine & "Dim strDns2" & Environment.NewLine & "strIPAddress = """ & Environment.NewLine & TB_IPAddress & Environment.NewLine &) Directory.CreateDirectory("C:\SpecMee\IPChanger\")ĭim objwriter As New System.IO.StreamWriter("C:\SpecMee\IPChanger\IpChanger.vbs") The way I am trying to write this is like the following. ObjShell.Run "netsh interface ip add dns name=""Local Area Connection"" addr="& strDns2, 0, True ObjShell.Run "netsh interface ip set dns name=""Local Area Connection"" static "& strDns1, 0, True ObjShell.Run "netsh interface ip set address name=""Local Area Connection"" static " & strIPAddress & " " & strSubnetMask & " " & strGateway & " " & intGatewayMetric, 0, True Set objShell = WScript.CreateObject("Wscript.Shell") In my application I have created I need it to write a visual basic script to change the ip address
