Stephon98caffe
Programmer
I know how to open an excel spread sheet using .vbs. I have a huge list of data but I want to separate each OU on the same workbook but on different sheets. How do you access each sheet within a workbook?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Set oXLS = CreateObject("Excel.Application")
oXLS.Visible = TRUE
oXLS.Workbooks.Add
'Adds one spreadsheet to book
oXLS.ActiveWorkbook.Worksheets.Add
oXLS.Sheets(1).Name = "ONE"
oXLS.Sheets(2).Name = "TWO"
oXLS.Sheets(3).Name = "THREE"
oXLS.Sheets(4).Name = "FOUR"