I need to open an excel spreadsheet and with a vbscript take the value
in column 1 and parse it into column 2 and 3.
Right now the spreadsheet only has this column
10.1.1.2/24
10.2.2.2/24
I need to run a script that will convert the spreadsheet into this
format with 3 columns.
10.1.1.2/24 10.1.12 24
10.2.2.2/24 10.2.2.2 24
Would I use a script something like this:
Option Explicit
Dim strSheet, intRow
Dim objExcel, objSpread
Dim strComputer
strSheet = "c:\test.xls"
' Open the Excel spreadsheet
Set objExcel = CreateObject("Excel.Application")
Set objSpread = objExcel.Workbooks.Open(strSheet)
intRow = 2 'Row 1 often containes headings
' Here is the loop that cycles through the cells
Do Until objExcel.Cells(intRow, 1).Value = ""
strComputer = objExcel.Cells(intRow, 1).Value
intRow = intRow + 1
Loop
objExcel.Quit
WScript.Quit
What do I place in the loop to accomplish the copy paste and parse?
Thanks for your help.