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 xl_sheet_1 = xl_wb.Sheets("Sheet1")
xl_wb.Sheets.Add After:=xl_wb.Sheets(xl_wb.Sheets.Count), Count:=10
For iScreen = 0 to UBound(aScreens)
Set xl_ws = xl_wb.Sheets.Add(After:= xl_wb.Sheets(xl_wb.Sheets.Count))
xl_ws.Name = aScreens(iScreen)
'...
Next
Dim sCity as string, sPrevCity as string, iCol as integer
iCol = 1
For iScreen = 0 to UBound(aScreens)
Set xl_ws = xl_wb.Sheets.Add(After:= xl_wb.Sheets(xl_wb.Sheets.Count))
xl_ws.Name = aScreens(iScreen)
'... to process changes in City Name
sCity = Trim(Sess.Screen.GetString(5,12,13))
If sPrevCity <> sCity Then
iCol = iCol + 2
RW = 3
End if
xl_ws.Cells(2, iCol).Value = "Name"
xl_ws.Cells(2, iCol+1).Value = "Accountid"
'... within your loop to process rows 8-22
xl_ws.Cells(RW, iCol).Value = Name
xl_ws.Cells(RW, iCol+1).Value = Accountid
'...
sPrevCity = sCity
Next
xl_ws.Cells(2, iCol).Value = "Name"
x[b][red]1[/red][/b]_ws.Cells(2, iCol).Value = Name
xl_ws.Cells(2, iCol + 1).Value = Accountid