Вы находитесь на странице: 1из 103

Sub RNOKML()

'NCS >> Missing Neigbours.

Dim oRange As Range, aCell As Range, bCell As Range


Dim wsNCS As Worksheet
Dim SearCHString As String
Dim FoundAt As String
Dim wsidea As Worksheet
Set wsidea = Worksheets("Sheet2")

'Dim wsresult As Worksheet


'Set wsresult = Worksheets("Sheet5")
Dim wsresult As Worksheet
Set wsresult = Worksheets("MRR")

Dim wsresultFAS As Worksheet


Set wsresultFAS = Worksheets("FAS")

Dim wsideaC As Worksheet


Set wsideaC = Worksheets("Charts")

Dim wsSheet7 As Worksheet


Set wsSheet7 = Worksheets("Sheet2")

Dim wsSheet9 As Worksheet


Set wsSheet9 = Worksheets("Charts")

'Application.Workbooks("create-a-macro").Worksheets(1).Range("A1").Value = "Hello"

'Dim wbD As Workbook


'Dim wsresult As Worksheet

'NQI Daily Report_2G_Hourly NQI Hourly Charts for Daily Monitor


'Set wbD = Workbooks("NQI Daily Report_2G_Hourly NQI Hourly Charts for Daily
Monitor.xlsx")
'
'Set wsresult = wbD.Sheets("NQI")
'MsgBox "wsresult.Range(""J2"")" & wsresult.Range("J2")

Dim SaveToDirectory As String

SaveToDirectory = ActiveWorkbook.Path & "\Charts\"


'"\Hourly_Charts\"

date1 = UserForm1.TextBox2.Text
date2 = UserForm1.TextBox3.Text
date1 = Replace(date1, "/", "-")
date2 = Replace(date2, "/", "-")

'sFilePath = SaveToDirectory & "DCR1NewSheetsP44FASMRR.kml"


' Set objFSOs = CreateObject("scripting.filesystemobject")
'
' Set objTFs = objFSOs.readtextfile(sFilePath, True, False)
'
strFile_Path = SaveToDirectory & "Gaza_Cells_Full_KPI_Analysis_" & date1 & "_" &
date2 & ".kml"
'
'Opening the text file for Append with FileNumber as 1.
Open strFile_Path For Append As #1

Print #1, "<Folder>"


' Print #1, " <name>"
' Print #1, DDL
' Print #1, "</name>"
Print #1, " <name>RNO </name>"
Print #1, " <open>0</open>"

Print #1, " <Folder>"


Print #1, " <name>MRR</name>"

Print #1, " <Folder>"


Print #1, " <name>CHGR-0</name>"

Print #1, " <Folder>"


Print #1, " <name>Path Loss DL > 150 %</name>"

'
'Print #1, " <Folder>"
' Print #1, " <name> Daily Monitor </name>"
' Print #1, " <visibility>0</visibility> "

' For Loop Folders


Dim RowTOP As Integer
RowTOP = 2
Do Until (wsresult.Range("S" & RowTOP) = "")

'CHGR-0
If wsresult.Range("M" & RowTOP) = 0 Then

If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then

'Site Name
Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("V" & RowTOP))
Print #1, "</name>"
Print #1, "<visibility>0</visibility> "
Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
Print #1, " <Point>"
'
' wsresult.Range ("S" & RowTOP)
Print #1, " <coordinates>"
Print #1, wsresult.Range("T" & RowTOP)
Print #1, ","
Print #1, wsresult.Range("S" & RowTOP)
Print #1, ", 20"
Print #1, " </coordinates>"
Print #1, " </Point>"
Print #1, " </Placemark>"
End If

' Cell Name


Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("A" & RowTOP))
Print #1, "</name>"
Print #1, " <visibility>0</visibility>"

If (wsresult.Range("E" & RowTOP).Value) >= 1 Then


Print #1, " <styleUrl>#Cell_Red</styleUrl>"
'
ElseIf wsresult.Range("E" & RowTOP).Value >= 0.5 And wsresult.Range("E" &
RowTOP).Value < 1 Then
Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
'
ElseIf wsresult.Range("E" & RowTOP).Value >= 0.3 And wsresult.Range("E" &
RowTOP).Value < 0.5 Then
Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
Else
Print #1, " <styleUrl>#Cell_Green</styleUrl>"
End If

'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
'
''******************************* to make 3 Images
'
''<name>Untitled Placemark</name>
' ' <description><![CDATA[<img style="max-width:1000px;"
src="file:///C://GC2003A CSSR3.jpg">
' ' <img style="max-width:1000px;" src="file:///C:/GC2003A
DCR_Reasons_CHGR11.jpg">
' ' <img style="max-width:1000px;" src="file:///C:/Users/GC2003A
DCR_Reasons10.jpg">]]></description>
'
'
'
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CX" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CV" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CW" & i) & ".jpg""/>"
' ' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CU" & i) &
".jpg""/>"
'' Print #1,
' Print #1, "]]></description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i

Print #1, "<MultiGeometry>"


Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"

Print #1, " <LinearRing><coordinates>"

Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),


0.0015, wsresult.Range("U" & RowTOP)))
Print #1, "</coordinates>"
Print #1, " </LinearRing>"
Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"

Print #1, "</Placemark>"

'C:\Users\Yousef.Shaban\Desktop\All on one Sheet Full KPIs


Analysis\Charts\Legend\DCR.png

' Print #1, " <ScreenOverlay> <name>DCR</name>"


' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/DCR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"

'Print #1, "<overlayXY x=""; 0; "; y = ""; 1; " xunits=""; fraction; "" yunits="";
fraction; ""/>"
'Print #1, "<screenXY x=""; 0; "" y=""; 1; "" xunits=""; fraction; "" yunits="";
fraction; ""/>"

End If

RowTOP = RowTOP + 1
Loop
' Print #1, " <ScreenOverlay> <name>DCR</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/DCR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"

'Print #1, "</Folder>"


Print #1, "</Folder>"

'==================================================================================
=======================================

' For Loop CSSR Folders


*************************************************************************
'
Print #1, " <Folder>"
Print #1, " <name>RXLEV DL > -95 dBm (%)</name>"
'
'Print #1, " <Folder>"
' Print #1, " <name> Daily Monitor </name>"
' Print #1, " <visibility>0</visibility> "

' For Loop Folders


'Dim RowTOP As Integer
RowTOP = 2
Do Until (wsresult.Range("S" & RowTOP) = "")

If wsresult.Range("M" & RowTOP) = 0 Then

If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then

'Site Name
Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("V" & RowTOP))
Print #1, "</name>"
Print #1, "<visibility>0</visibility> "
Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
Print #1, " <Point>"
'
' wsresult.Range ("S" & RowTOP)
Print #1, " <coordinates>"
Print #1, wsresult.Range("T" & RowTOP)
Print #1, ","
Print #1, wsresult.Range("S" & RowTOP)
Print #1, ", 20"
Print #1, " </coordinates>"
Print #1, " </Point>"
Print #1, " </Placemark>"
End If

' Cell Name


Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("A" & RowTOP))
Print #1, "</name>"
Print #1, " <visibility>0</visibility>"

' > -95


If (wsresult.Range("G" & RowTOP).Value) <= 70 Then
Print #1, " <styleUrl>#Cell_Red</styleUrl>"
'
ElseIf wsresult.Range("G" & RowTOP).Value >= 70 And wsresult.Range("G" &
RowTOP).Value < 80 Then
Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
'
ElseIf wsresult.Range("G" & RowTOP).Value >= 80 And wsresult.Range("G" &
RowTOP).Value < 90 Then
Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
Else
Print #1, " <styleUrl>#Cell_Green</styleUrl>"
End If

Print #1, "<MultiGeometry>"


Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"

Print #1, " <LinearRing><coordinates>"

Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),


0.0015, wsresult.Range("U" & RowTOP)))
Print #1, "</coordinates>"
Print #1, " </LinearRing>"
Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"

Print #1, "</Placemark>"

End If

RowTOP = RowTOP + 1
Loop

' Print #1, " <ScreenOverlay> <name>CSSR</name>"


' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/CSSR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"

Print #1, "</Folder>"

'Rx LeveL UL
Print #1, " <Folder>"
Print #1, " <name>RXLEV UL > -95 dBm (%)</name>"
'
'Print #1, " <Folder>"
' Print #1, " <name> Daily Monitor </name>"
' Print #1, " <visibility>0</visibility> "

' For Loop Folders


'Dim RowTOP As Integer
RowTOP = 2
Do Until (wsresult.Range("S" & RowTOP) = "")

If wsresult.Range("M" & RowTOP) = 0 Then


If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then

'Site Name
Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("V" & RowTOP))
Print #1, "</name>"
Print #1, "<visibility>0</visibility> "
Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
Print #1, " <Point>"
'
' wsresult.Range ("S" & RowTOP)
Print #1, " <coordinates>"
Print #1, wsresult.Range("T" & RowTOP)
Print #1, ","
Print #1, wsresult.Range("S" & RowTOP)
Print #1, ", 20"
Print #1, " </coordinates>"
Print #1, " </Point>"
Print #1, " </Placemark>"
End If

' Cell Name


Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("A" & RowTOP))
Print #1, "</name>"
Print #1, " <visibility>0</visibility>"
If (wsresult.Range("H" & RowTOP).Value) <= 50 Then
Print #1, " <styleUrl>#Cell_Red</styleUrl>"
'
ElseIf wsresult.Range("H" & RowTOP).Value <= 60 And wsresult.Range("H" &
RowTOP).Value > 50 Then
Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
'
ElseIf wsresult.Range("G" & RowTOP).Value >= 70 And wsresult.Range("G" &
RowTOP).Value < 60 Then
Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
Else
Print #1, " <styleUrl>#Cell_Green</styleUrl>"
End If

Print #1, "<MultiGeometry>"


Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"

Print #1, " <LinearRing><coordinates>"

Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),


0.0015, wsresult.Range("U" & RowTOP)))
Print #1, "</coordinates>"
Print #1, " </LinearRing>"
Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"

Print #1, "</Placemark>"

End If

RowTOP = RowTOP + 1
Loop
'
' Print #1, " <ScreenOverlay> <name>CSSR</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/CSSR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"

Print #1, "</Folder>"

' RxQual DL > 4 %


Print #1, " <Folder>"
Print #1, " <name>RxQual DL > 4 %</name>"
'
'Print #1, " <Folder>"
' Print #1, " <name> Daily Monitor </name>"
' Print #1, " <visibility>0</visibility> "

' For Loop Folders


'Dim RowTOP As Integer
RowTOP = 2
Do Until (wsresult.Range("S" & RowTOP) = "")

If wsresult.Range("M" & RowTOP) = 0 Then

If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then

'Site Name
Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("V" & RowTOP))
Print #1, "</name>"
Print #1, "<visibility>0</visibility> "
Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
Print #1, " <Point>"
'
' wsresult.Range ("S" & RowTOP)
Print #1, " <coordinates>"
Print #1, wsresult.Range("T" & RowTOP)
Print #1, ","
Print #1, wsresult.Range("S" & RowTOP)
Print #1, ", 20"
Print #1, " </coordinates>"
Print #1, " </Point>"
Print #1, " </Placemark>"
End If

' Cell Name


Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("A" & RowTOP))
Print #1, "</name>"
Print #1, " <visibility>0</visibility>"

If (wsresult.Range("I" & RowTOP).Value) >= 8 Then


Print #1, " <styleUrl>#Cell_Red</styleUrl>"
'
ElseIf wsresult.Range("I" & RowTOP).Value >= 6 And wsresult.Range("I" &
RowTOP).Value < 8 Then
Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
'
ElseIf wsresult.Range("G" & RowTOP).Value >= 4 And wsresult.Range("G" &
RowTOP).Value < 6 Then
Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
Else
Print #1, " <styleUrl>#Cell_Green</styleUrl>"
End If

Print #1, "<MultiGeometry>"


Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"

Print #1, " <LinearRing><coordinates>"

Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),


0.0015, wsresult.Range("U" & RowTOP)))
Print #1, "</coordinates>"
Print #1, " </LinearRing>"
Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"

Print #1, "</Placemark>"

End If

RowTOP = RowTOP + 1
Loop

' Print #1, " <ScreenOverlay> <name>CSSR</name>"


' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/CSSR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'

Print #1, "</Folder>"

'
Print #1, " <Folder>"
Print #1, " <name>RxQual UL > 4dBm (%)</name>"
'
'Print #1, " <Folder>"
' Print #1, " <name> Daily Monitor </name>"
' Print #1, " <visibility>0</visibility> "

' For Loop Folders


'Dim RowTOP As Integer
RowTOP = 2
Do Until (wsresult.Range("S" & RowTOP) = "")

If wsresult.Range("M" & RowTOP) = 0 Then

If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then

'Site Name
Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("V" & RowTOP))
Print #1, "</name>"
Print #1, "<visibility>0</visibility> "
Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
Print #1, " <Point>"
'
' wsresult.Range ("S" & RowTOP)
Print #1, " <coordinates>"
Print #1, wsresult.Range("T" & RowTOP)
Print #1, ","
Print #1, wsresult.Range("S" & RowTOP)
Print #1, ", 20"
Print #1, " </coordinates>"
Print #1, " </Point>"
Print #1, " </Placemark>"
End If

' Cell Name


Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("A" & RowTOP))
Print #1, "</name>"
Print #1, " <visibility>0</visibility>"

If (wsresult.Range("J" & RowTOP).Value) >= 5 Then


Print #1, " <styleUrl>#Cell_Red</styleUrl>"
'
ElseIf wsresult.Range("J" & RowTOP).Value >= 3 And wsresult.Range("J" &
RowTOP).Value < 5 Then
Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
'
' ElseIf wsresult.Range("G" & RowTOP).Value >= 0.3 And wsresult.Range("G" &
RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
Else
Print #1, " <styleUrl>#Cell_Green</styleUrl>"
End If

Print #1, "<MultiGeometry>"


Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"

Print #1, " <LinearRing><coordinates>"

Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),


0.0015, wsresult.Range("U" & RowTOP)))
Print #1, "</coordinates>"
Print #1, " </LinearRing>"
Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"

Print #1, "</Placemark>"

End If
RowTOP = RowTOP + 1
Loop

' Print #1, " <ScreenOverlay> <name>CSSR</name>"


' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/CSSR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'

Print #1, "</Folder>"

'CHGR-0
Print #1, "</Folder>"

Print #1, " <Folder>"


Print #1, " <name>CHGR-1</name>"

Print #1, " <Folder>"


Print #1, " <name>Path Loss DL > 150 %</name>"

'
'Print #1, " <Folder>"
' Print #1, " <name> Daily Monitor </name>"
' Print #1, " <visibility>0</visibility> "

' For Loop Folders


'Dim RowTOP As Integer
RowTOP = 2
Do Until (wsresult.Range("S" & RowTOP) = "")

'CHGR-0
If wsresult.Range("M" & RowTOP) = 1 Then

If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then

'Site Name
Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("V" & RowTOP))
Print #1, "</name>"
Print #1, "<visibility>0</visibility> "
Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
Print #1, " <Point>"
'
' wsresult.Range ("S" & RowTOP)
Print #1, " <coordinates>"
Print #1, wsresult.Range("T" & RowTOP)
Print #1, ","
Print #1, wsresult.Range("S" & RowTOP)
Print #1, ", 20"
Print #1, " </coordinates>"
Print #1, " </Point>"
Print #1, " </Placemark>"
End If

' Cell Name


Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("A" & RowTOP))
Print #1, "</name>"
Print #1, " <visibility>0</visibility>"

If (wsresult.Range("E" & RowTOP).Value) >= 1 Then


Print #1, " <styleUrl>#Cell_Red</styleUrl>"
'
ElseIf wsresult.Range("E" & RowTOP).Value >= 0.5 And wsresult.Range("E" &
RowTOP).Value < 1 Then
Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
'
ElseIf wsresult.Range("F" & RowTOP).Value >= 0.3 And wsresult.Range("F" &
RowTOP).Value < 0.5 Then
Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
Else
Print #1, " <styleUrl>#Cell_Green</styleUrl>"
End If

'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
'
''******************************* to make 3 Images
'
''<name>Untitled Placemark</name>
' ' <description><![CDATA[<img style="max-width:1000px;"
src="file:///C://GC2003A CSSR3.jpg">
' ' <img style="max-width:1000px;" src="file:///C:/GC2003A
DCR_Reasons_CHGR11.jpg">
' ' <img style="max-width:1000px;" src="file:///C:/Users/GC2003A
DCR_Reasons10.jpg">]]></description>
'
'
'
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CX" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CV" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CW" & i) & ".jpg""/>"
' ' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CU" & i) &
".jpg""/>"
'' Print #1,
' Print #1, "]]></description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i

Print #1, "<MultiGeometry>"


Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"

Print #1, " <LinearRing><coordinates>"

Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),


0.0015, wsresult.Range("U" & RowTOP)))
Print #1, "</coordinates>"
Print #1, " </LinearRing>"
Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"

Print #1, "</Placemark>"

'C:\Users\Yousef.Shaban\Desktop\All on one Sheet Full KPIs


Analysis\Charts\Legend\DCR.png

' Print #1, " <ScreenOverlay> <name>DCR</name>"


' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/DCR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'Print #1, "<overlayXY x=""; 0; "; y = ""; 1; " xunits=""; fraction; "" yunits="";
fraction; ""/>"
'Print #1, "<screenXY x=""; 0; "" y=""; 1; "" xunits=""; fraction; "" yunits="";
fraction; ""/>"

End If

RowTOP = RowTOP + 1
Loop
' Print #1, " <ScreenOverlay> <name>DCR</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/DCR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"

'Print #1, "</Folder>"


Print #1, "</Folder>"

'==================================================================================
=======================================

' For Loop CSSR Folders


*************************************************************************
'
Print #1, " <Folder>"
Print #1, " <name>RXLEV DL > -95 dBm (%)</name>"
'
'Print #1, " <Folder>"
' Print #1, " <name> Daily Monitor </name>"
' Print #1, " <visibility>0</visibility> "

' For Loop Folders


'Dim RowTOP As Integer
RowTOP = 2
Do Until (wsresult.Range("S" & RowTOP) = "")

If wsresult.Range("M" & RowTOP) = 1 Then

If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then

'Site Name
Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("V" & RowTOP))
Print #1, "</name>"
Print #1, "<visibility>0</visibility> "
Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
Print #1, " <Point>"
'
' wsresult.Range ("S" & RowTOP)
Print #1, " <coordinates>"
Print #1, wsresult.Range("T" & RowTOP)
Print #1, ","
Print #1, wsresult.Range("S" & RowTOP)
Print #1, ", 20"
Print #1, " </coordinates>"
Print #1, " </Point>"
Print #1, " </Placemark>"
End If

' Cell Name


Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("A" & RowTOP))
Print #1, "</name>"
Print #1, " <visibility>0</visibility>"

' > -95


If (wsresult.Range("G" & RowTOP).Value) <= 70 Then
Print #1, " <styleUrl>#Cell_Red</styleUrl>"
'
ElseIf wsresult.Range("G" & RowTOP).Value >= 70 And wsresult.Range("G" &
RowTOP).Value < 80 Then
Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
'
ElseIf wsresult.Range("G" & RowTOP).Value >= 80 And wsresult.Range("G" &
RowTOP).Value < 90 Then
Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
Else
Print #1, " <styleUrl>#Cell_Green</styleUrl>"
End If

Print #1, "<MultiGeometry>"


Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"

Print #1, " <LinearRing><coordinates>"

Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),


0.0015, wsresult.Range("U" & RowTOP)))
Print #1, "</coordinates>"
Print #1, " </LinearRing>"
Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"

Print #1, "</Placemark>"

End If
RowTOP = RowTOP + 1
Loop

' Print #1, " <ScreenOverlay> <name>CSSR</name>"


' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/CSSR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"

Print #1, "</Folder>"

'Rx LeveL UL
Print #1, " <Folder>"
Print #1, " <name>RXLEV UL > -95 dBm (%)</name>"
'
'Print #1, " <Folder>"
' Print #1, " <name> Daily Monitor </name>"
' Print #1, " <visibility>0</visibility> "

' For Loop Folders


'Dim RowTOP As Integer
RowTOP = 2
Do Until (wsresult.Range("S" & RowTOP) = "")

If wsresult.Range("M" & RowTOP) = 1 Then


If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then

'Site Name
Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("V" & RowTOP))
Print #1, "</name>"
Print #1, "<visibility>0</visibility> "
Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
Print #1, " <Point>"
'
' wsresult.Range ("S" & RowTOP)
Print #1, " <coordinates>"
Print #1, wsresult.Range("T" & RowTOP)
Print #1, ","
Print #1, wsresult.Range("S" & RowTOP)
Print #1, ", 20"
Print #1, " </coordinates>"
Print #1, " </Point>"
Print #1, " </Placemark>"
End If

' Cell Name


Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("A" & RowTOP))
Print #1, "</name>"
Print #1, " <visibility>0</visibility>"

If (wsresult.Range("H" & RowTOP).Value) <= 50 Then


Print #1, " <styleUrl>#Cell_Red</styleUrl>"
'
ElseIf wsresult.Range("H" & RowTOP).Value <= 60 And wsresult.Range("H" &
RowTOP).Value > 50 Then
Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
'
ElseIf wsresult.Range("G" & RowTOP).Value >= 70 And wsresult.Range("G" &
RowTOP).Value < 80 Then
Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
Else
Print #1, " <styleUrl>#Cell_Green</styleUrl>"
End If

Print #1, "<MultiGeometry>"


Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"

Print #1, " <LinearRing><coordinates>"

Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),


0.0015, wsresult.Range("U" & RowTOP)))
Print #1, "</coordinates>"
Print #1, " </LinearRing>"
Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"

Print #1, "</Placemark>"

End If

RowTOP = RowTOP + 1
Loop
'
' Print #1, " <ScreenOverlay> <name>CSSR</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/CSSR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"

Print #1, "</Folder>"


' RxQual DL > 4 %
Print #1, " <Folder>"
Print #1, " <name>RxQual DL > 4 %</name>"
'
'Print #1, " <Folder>"
' Print #1, " <name> Daily Monitor </name>"
' Print #1, " <visibility>0</visibility> "

' For Loop Folders


'Dim RowTOP As Integer
RowTOP = 2
Do Until (wsresult.Range("S" & RowTOP) = "")

If wsresult.Range("M" & RowTOP) = 1 Then

If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then

'Site Name
Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("V" & RowTOP))
Print #1, "</name>"
Print #1, "<visibility>0</visibility> "
Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
Print #1, " <Point>"
'
' wsresult.Range ("S" & RowTOP)
Print #1, " <coordinates>"
Print #1, wsresult.Range("T" & RowTOP)
Print #1, ","
Print #1, wsresult.Range("S" & RowTOP)
Print #1, ", 20"
Print #1, " </coordinates>"
Print #1, " </Point>"
Print #1, " </Placemark>"
End If

' Cell Name


Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("A" & RowTOP))
Print #1, "</name>"
Print #1, " <visibility>0</visibility>"

If (wsresult.Range("I" & RowTOP).Value) >= 8 Then


Print #1, " <styleUrl>#Cell_Red</styleUrl>"
'
ElseIf wsresult.Range("I" & RowTOP).Value >= 6 And wsresult.Range("I" &
RowTOP).Value < 8 Then
Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
'
ElseIf wsresult.Range("G" & RowTOP).Value >= 4 And wsresult.Range("G" &
RowTOP).Value < 6 Then
Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
Else
Print #1, " <styleUrl>#Cell_Green</styleUrl>"
End If

Print #1, "<MultiGeometry>"


Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"

Print #1, " <LinearRing><coordinates>"

Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),


0.0015, wsresult.Range("U" & RowTOP)))
Print #1, "</coordinates>"
Print #1, " </LinearRing>"
Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"

Print #1, "</Placemark>"

End If

RowTOP = RowTOP + 1
Loop

' Print #1, " <ScreenOverlay> <name>CSSR</name>"


' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/CSSR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'

Print #1, "</Folder>"

'
Print #1, " <Folder>"
Print #1, " <name>RxQual UL > 4dBm (%)</name>"
'
'Print #1, " <Folder>"
' Print #1, " <name> Daily Monitor </name>"
' Print #1, " <visibility>0</visibility> "

' For Loop Folders


'Dim RowTOP As Integer
RowTOP = 2
Do Until (wsresult.Range("S" & RowTOP) = "")

If wsresult.Range("M" & RowTOP) = 1 Then


If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then

'Site Name
Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("V" & RowTOP))
Print #1, "</name>"
Print #1, "<visibility>0</visibility> "
Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
Print #1, " <Point>"
'
' wsresult.Range ("S" & RowTOP)
Print #1, " <coordinates>"
Print #1, wsresult.Range("T" & RowTOP)
Print #1, ","
Print #1, wsresult.Range("S" & RowTOP)
Print #1, ", 20"
Print #1, " </coordinates>"
Print #1, " </Point>"
Print #1, " </Placemark>"
End If

' Cell Name


Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresult.Range("A" & RowTOP))
Print #1, "</name>"
Print #1, " <visibility>0</visibility>"

If (wsresult.Range("J" & RowTOP).Value) >= 5 Then


Print #1, " <styleUrl>#Cell_Red</styleUrl>"
'
ElseIf wsresult.Range("J" & RowTOP).Value >= 4 And wsresult.Range("J" &
RowTOP).Value < 5 Then
Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
'
ElseIf wsresult.Range("G" & RowTOP).Value >= 3 And wsresult.Range("G" &
RowTOP).Value < 4 Then
Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
Else
Print #1, " <styleUrl>#Cell_Green</styleUrl>"
End If

Print #1, "<MultiGeometry>"


Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"

Print #1, " <LinearRing><coordinates>"

Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),


0.0015, wsresult.Range("U" & RowTOP)))
Print #1, "</coordinates>"
Print #1, " </LinearRing>"
Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"

Print #1, "</Placemark>"

End If

RowTOP = RowTOP + 1
Loop

' Print #1, " <ScreenOverlay> <name>CSSR</name>"


' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/CSSR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'

Print #1, "</Folder>"


'CHGR-1
Print #1, "</Folder>"

'MRR Finish
Print #1, "</Folder>"

'Fas Folder

Print #1, " <Folder>"


Print #1, " <name>FAS</name>"

Print #1, " <Folder>"


Print #1, " <name>Highest I.</name>"

'
'Print #1, " <Folder>"
' Print #1, " <name> Daily Monitor </name>"
' Print #1, " <visibility>0</visibility> "

' For Loop Folders


'Dim RowTOP As Integer
RowTOP = 2
Do Until (wsresultFAS.Range("S" & RowTOP) = "")

If wsresultFAS.Range("V" & RowTOP) <> wsresultFAS.Range("V" & RowTOP + 1) Then


'Site Name
Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresultFAS.Range("V" & RowTOP))
Print #1, "</name>"
Print #1, "<visibility>0</visibility> "
Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
Print #1, " <Point>"
'
' wsresultFAS.Range ("S" & RowTOP)
Print #1, " <coordinates>"
Print #1, wsresultFAS.Range("T" & RowTOP)
Print #1, ","
Print #1, wsresultFAS.Range("S" & RowTOP)
Print #1, ", 20"
Print #1, " </coordinates>"
Print #1, " </Point>"
Print #1, " </Placemark>"
End If

' Cell Name


Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresultFAS.Range("A" & RowTOP))
Print #1, "</name>"
Print #1, " <visibility>0</visibility>"

If (wsresultFAS.Range("D" & RowTOP).Value) >= -90 Then


Print #1, " <styleUrl>#Cell_Red</styleUrl>"
'
ElseIf wsresultFAS.Range("D" & RowTOP).Value >= -100 And wsresultFAS.Range("D"
& RowTOP).Value < -90 Then
Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresultFAS.Range("F" & RowTOP).Value >= 0.3 And
wsresultFAS.Range("F" & RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
Else
Print #1, " <styleUrl>#Cell_Green</styleUrl>"
End If

' For i = 1 To 1000


'
' If wsideaC.Range("CL" & i) = wsresultFAS.Range("A" & RowTOP) Then
''MsgBox "wsresultFAS.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresultFAS.Range(""A"" & RowTOP)" & wsresultFAS.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
'
''******************************* to make 3 Images
'
''<name>Untitled Placemark</name>
' ' <description><![CDATA[<img style="max-width:1000px;"
src="file:///C://GC2003A CSSR3.jpg">
' ' <img style="max-width:1000px;" src="file:///C:/GC2003A
DCR_Reasons_CHGR11.jpg">
' ' <img style="max-width:1000px;" src="file:///C:/Users/GC2003A
DCR_Reasons10.jpg">]]></description>
'
'
'
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CX" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CV" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CW" & i) & ".jpg""/>"
' ' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CU" & i) &
".jpg""/>"
'' Print #1,
' Print #1, "]]></description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'

Print #1, "<MultiGeometry>"


Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"

Print #1, " <LinearRing><coordinates>"

Print #1, (Polygon(wsresultFAS.Range("T" & RowTOP), wsresultFAS.Range("S" &


RowTOP), 0.0015, wsresultFAS.Range("U" & RowTOP)))
Print #1, "</coordinates>"
Print #1, " </LinearRing>"
Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"

Print #1, "</Placemark>"

'C:\Users\Yousef.Shaban\Desktop\All on one Sheet Full KPIs


Analysis\Charts\Legend\DCR.png

' Print #1, " <ScreenOverlay> <name>DCR</name>"


' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/DCR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"

'Print #1, "<overlayXY x=""; 0; "; y = ""; 1; " xunits=""; fraction; "" yunits="";
fraction; ""/>"
'Print #1, "<screenXY x=""; 0; "" y=""; 1; "" xunits=""; fraction; "" yunits="";
fraction; ""/>"

RowTOP = RowTOP + 1
Loop
' Print #1, " <ScreenOverlay> <name>DCR</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/DCR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"

'Print #1, "</Folder>"


Print #1, "</Folder>"

'==================================================================================
=======================================

' For Loop CSSR Folders


*************************************************************************
'
Print #1, " <Folder>"
Print #1, " <name>average I.</name>"
'
'Print #1, " <Folder>"
' Print #1, " <name> Daily Monitor </name>"
' Print #1, " <visibility>0</visibility> "

' For Loop Folders


'Dim RowTOP As Integer
RowTOP = 2
Do Until (wsresultFAS.Range("S" & RowTOP) = "")

If wsresultFAS.Range("V" & RowTOP) <> wsresultFAS.Range("V" & RowTOP + 1) Then

'Site Name
Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresultFAS.Range("V" & RowTOP))
Print #1, "</name>"
Print #1, "<visibility>0</visibility> "
Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
Print #1, " <Point>"
'
' wsresultFAS.Range ("S" & RowTOP)
Print #1, " <coordinates>"
Print #1, wsresultFAS.Range("T" & RowTOP)
Print #1, ","
Print #1, wsresultFAS.Range("S" & RowTOP)
Print #1, ", 20"
Print #1, " </coordinates>"
Print #1, " </Point>"
Print #1, " </Placemark>"
End If

' Cell Name


Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresultFAS.Range("A" & RowTOP))
Print #1, "</name>"
Print #1, " <visibility>0</visibility>"

' If (wsresultFAS.Range("G" & RowTOP).Value) >= 1 Then


' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresultFAS.Range("G" & RowTOP).Value >= 0.5 And wsresultFAS.Range("G"
& RowTOP).Value < 1 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresultFAS.Range("G" & RowTOP).Value >= 0.3 And
wsresultFAS.Range("G" & RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If

If (wsresultFAS.Range("E" & RowTOP).Value) >= -90 Then


Print #1, " <styleUrl>#Cell_Red</styleUrl>"
'
ElseIf wsresultFAS.Range("E" & RowTOP).Value >= -100 And wsresultFAS.Range("E"
& RowTOP).Value < -90 Then
Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresultFAS.Range("F" & RowTOP).Value >= 0.3 And
wsresultFAS.Range("F" & RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
Else
Print #1, " <styleUrl>#Cell_Green</styleUrl>"
End If

' For i = 1 To 1000


'
' If wsideaC.Range("CL" & i) = wsresultFAS.Range("A" & RowTOP) Then
''MsgBox "wsresultFAS.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresultFAS.Range(""A"" & RowTOP)" & wsresultFAS.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CO" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CP" & i) &
".jpg""/>"
'
'' Print #1,
' Print #1, "]]></description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i

Print #1, "<MultiGeometry>"


Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"

Print #1, " <LinearRing><coordinates>"

Print #1, (Polygon(wsresultFAS.Range("T" & RowTOP), wsresultFAS.Range("S" &


RowTOP), 0.0015, wsresultFAS.Range("U" & RowTOP)))
Print #1, "</coordinates>"
Print #1, " </LinearRing>"
Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"

Print #1, "</Placemark>"

RowTOP = RowTOP + 1
Loop

Print #1, " <ScreenOverlay> <name>CSSR</name>"


Print #1, " <visibility>0</visibility>"
Print #1, " <Icon>"
Print #1, " <href>"
Print #1, "./Legend/CSSR.png"
Print #1, "</href>"
Print #1, " </Icon>"
Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
Print #1, "</ScreenOverlay>"

Print #1, "</Folder>"

'Rx LeveL UL
Print #1, " <Folder>"
Print #1, " <name>BCCH I.</name>"
'
'Print #1, " <Folder>"
' Print #1, " <name> Daily Monitor </name>"
' Print #1, " <visibility>0</visibility> "

' For Loop Folders


'Dim RowTOP As Integer
RowTOP = 2
Do Until (wsresultFAS.Range("S" & RowTOP) = "")

If wsresultFAS.Range("V" & RowTOP) <> wsresultFAS.Range("V" & RowTOP + 1) Then

'Site Name
Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresultFAS.Range("V" & RowTOP))
Print #1, "</name>"
Print #1, "<visibility>0</visibility> "
Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
Print #1, " <Point>"
'
' wsresultFAS.Range ("S" & RowTOP)
Print #1, " <coordinates>"
Print #1, wsresultFAS.Range("T" & RowTOP)
Print #1, ","
Print #1, wsresultFAS.Range("S" & RowTOP)
Print #1, ", 20"
Print #1, " </coordinates>"
Print #1, " </Point>"
Print #1, " </Placemark>"
End If

' Cell Name


Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresultFAS.Range("A" & RowTOP))
Print #1, "</name>"
Print #1, " <visibility>0</visibility>"
'
' If (wsresultFAS.Range("F" & RowTOP).Value) >= 1 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresultFAS.Range("G" & RowTOP).Value >= 0.5 And wsresultFAS.Range("G"
& RowTOP).Value < 1 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresultFAS.Range("G" & RowTOP).Value >= 0.3 And
wsresultFAS.Range("G" & RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If

If (wsresultFAS.Range("F" & RowTOP).Value) >= -90 Then


Print #1, " <styleUrl>#Cell_Red</styleUrl>"
'
ElseIf wsresultFAS.Range("F" & RowTOP).Value >= -100 And wsresultFAS.Range("F"
& RowTOP).Value < -90 Then
Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresultFAS.Range("F" & RowTOP).Value >= 0.3 And
wsresultFAS.Range("F" & RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
Else
Print #1, " <styleUrl>#Cell_Green</styleUrl>"
End If

'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresultFAS.Range("A" & RowTOP) Then
''MsgBox "wsresultFAS.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresultFAS.Range(""A"" & RowTOP)" & wsresultFAS.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CO" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CP" & i) &
".jpg""/>"
'
'' Print #1,
' Print #1, "]]></description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
Print #1, "<MultiGeometry>"
Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"

Print #1, " <LinearRing><coordinates>"

Print #1, (Polygon(wsresultFAS.Range("T" & RowTOP), wsresultFAS.Range("S" &


RowTOP), 0.0015, wsresultFAS.Range("U" & RowTOP)))
Print #1, "</coordinates>"
Print #1, " </LinearRing>"
Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"

Print #1, "</Placemark>"

RowTOP = RowTOP + 1
Loop

Print #1, " <ScreenOverlay> <name>CSSR</name>"


Print #1, " <visibility>0</visibility>"
Print #1, " <Icon>"
Print #1, " <href>"
Print #1, "./Legend/CSSR.png"
Print #1, "</href>"
Print #1, " </Icon>"
Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
Print #1, "</ScreenOverlay>"

Print #1, "</Folder>"

' RxQual DL > 4 %


Print #1, " <Folder>"
Print #1, " <name>Highest PIT</name>"
'
'Print #1, " <Folder>"
' Print #1, " <name> Daily Monitor </name>"
' Print #1, " <visibility>0</visibility> "

' For Loop Folders


'Dim RowTOP As Integer
RowTOP = 2
Do Until (wsresultFAS.Range("S" & RowTOP) = "")

If wsresultFAS.Range("V" & RowTOP) <> wsresultFAS.Range("V" & RowTOP + 1) Then

'Site Name
Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresultFAS.Range("V" & RowTOP))
Print #1, "</name>"
Print #1, "<visibility>0</visibility> "
Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
Print #1, " <Point>"
'
' wsresultFAS.Range ("S" & RowTOP)
Print #1, " <coordinates>"
Print #1, wsresultFAS.Range("T" & RowTOP)
Print #1, ","
Print #1, wsresultFAS.Range("S" & RowTOP)
Print #1, ", 20"
Print #1, " </coordinates>"
Print #1, " </Point>"
Print #1, " </Placemark>"
End If

' Cell Name


Print #1, "<Placemark>"
Print #1, "<name>"
Print #1, (wsresultFAS.Range("A" & RowTOP))
Print #1, "</name>"
Print #1, " <visibility>0</visibility>"

' If (wsresultFAS.Range("G" & RowTOP).Value) >= 1 Then


' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresultFAS.Range("G" & RowTOP).Value >= 0.5 And wsresultFAS.Range("G"
& RowTOP).Value < 1 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresultFAS.Range("G" & RowTOP).Value >= 0.3 And
wsresultFAS.Range("G" & RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If

If (wsresultFAS.Range("G" & RowTOP).Value) >= 10 Then


Print #1, " <styleUrl>#Cell_Red</styleUrl>"
'
ElseIf wsresultFAS.Range("G" & RowTOP).Value >= 8 And wsresultFAS.Range("G" &
RowTOP).Value < 10 Then
Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
ElseIf wsresultFAS.Range("G" & RowTOP).Value >= 5 And wsresultFAS.Range("G" &
RowTOP).Value < 8 Then
Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
Else
Print #1, " <styleUrl>#Cell_Green</styleUrl>"
End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresultFAS.Range("A" & RowTOP) Then
''MsgBox "wsresultFAS.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresultFAS.Range(""A"" & RowTOP)" & wsresultFAS.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CO" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CP" & i) &
".jpg""/>"
'
'' Print #1,
' Print #1, "]]></description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'

Print #1, "<MultiGeometry>"


Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"

Print #1, " <LinearRing><coordinates>"

Print #1, (Polygon(wsresultFAS.Range("T" & RowTOP), wsresultFAS.Range("S" &


RowTOP), 0.0015, wsresultFAS.Range("U" & RowTOP)))
Print #1, "</coordinates>"
Print #1, " </LinearRing>"
Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"

Print #1, "</Placemark>"

RowTOP = RowTOP + 1
Loop
Print #1, " <ScreenOverlay> <name>CSSR</name>"
Print #1, " <visibility>0</visibility>"
Print #1, " <Icon>"
Print #1, " <href>"
Print #1, "./Legend/CSSR.png"
Print #1, "</href>"
Print #1, " </Icon>"
Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
Print #1, "</ScreenOverlay>"

Print #1, "</Folder>"

'

'FAS

Print #1, "</Folder>"

'CHGR-0
'Print #1, "</Folder>"
'Print #1, "</Folder>"

'CHGR-1
'
' Print #1, " <Folder>"
' Print #1, " <name>CHGR-1</name>"
'
' Print #1, " <Folder>"
' Print #1, " <name>MRR</name>"
'
'
' Print #1, " <Folder>"
' Print #1, " <name>Path Loss DL > 150 %</name>"
'
'
'
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("F" & RowTOP).Value) >= 1 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("F" & RowTOP).Value >= 0.5 And wsresult.Range("F" &
RowTOP).Value < 1 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("F" & RowTOP).Value >= 0.3 And wsresult.Range("F" &
RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
'
''******************************* to make 3 Images
'
''<name>Untitled Placemark</name>
' ' <description><![CDATA[<img style="max-width:1000px;"
src="file:///C://GC2003A CSSR3.jpg">
' ' <img style="max-width:1000px;" src="file:///C:/GC2003A
DCR_Reasons_CHGR11.jpg">
' ' <img style="max-width:1000px;" src="file:///C:/Users/GC2003A
DCR_Reasons10.jpg">]]></description>
'
'
'
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CX" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CV" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CW" & i) & ".jpg""/>"
' ' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CU" & i) &
".jpg""/>"
'' Print #1,
' Print #1, "]]></description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
''C:\Users\Yousef.Shaban\Desktop\All on one Sheet Full KPIs
Analysis\Charts\Legend\DCR.png
'
'' Print #1, " <ScreenOverlay> <name>DCR</name>"
'' Print #1, " <visibility>0</visibility>"
'' Print #1, " <Icon>"
'' Print #1, " <href>"
'' Print #1, "./Legend/DCR.png"
'' Print #1, "</href>"
'' Print #1, " </Icon>"
'' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction""
yunits=""fraction""/>"
'' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction""
yunits=""fraction""/>"
'' Print #1, "</ScreenOverlay>"
'
'
'
'
'
''Print #1, "<overlayXY x=""; 0; "; y = ""; 1; " xunits=""; fraction; "" yunits="";
fraction; ""/>"
''Print #1, "<screenXY x=""; 0; "" y=""; 1; "" xunits=""; fraction; "" yunits="";
fraction; ""/>"
'
'
'
'
' RowTOP = RowTOP + 1
'Loop
'' Print #1, " <ScreenOverlay> <name>DCR</name>"
'' Print #1, " <visibility>0</visibility>"
'' Print #1, " <Icon>"
'' Print #1, " <href>"
'' Print #1, "./Legend/DCR.png"
'' Print #1, "</href>"
'' Print #1, " </Icon>"
'' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction""
yunits=""fraction""/>"
'' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction""
yunits=""fraction""/>"
'' Print #1, "</ScreenOverlay>"
'
''Print #1, "</Folder>"
'Print #1, "</Folder>"
'
''=================================================================================
========================================
'
'' For Loop CSSR Folders
*************************************************************************
''
' Print #1, " <Folder>"
' Print #1, " <name>RXLEV DL > -95 dBm (%)</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("G" & RowTOP).Value) >= 1 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("G" & RowTOP).Value >= 0.5 And wsresult.Range("G" &
RowTOP).Value < 1 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("G" & RowTOP).Value >= 0.3 And wsresult.Range("G" &
RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CO" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CP" & i) &
".jpg""/>"
'
'' Print #1,
' Print #1, "]]></description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
'
'
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
' Print #1, " <ScreenOverlay> <name>CSSR</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/CSSR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'Print #1, "</Folder>"
'
''Rx LeveL UL
' Print #1, " <Folder>"
' Print #1, " <name>RXLEV UL > -95 dBm (%)</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("G" & RowTOP).Value) >= 1 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("G" & RowTOP).Value >= 0.5 And wsresult.Range("G" &
RowTOP).Value < 1 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("G" & RowTOP).Value >= 0.3 And wsresult.Range("G" &
RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CO" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CP" & i) &
".jpg""/>"
'
'' Print #1,
' Print #1, "]]></description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
'
'
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
' Print #1, " <ScreenOverlay> <name>CSSR</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/CSSR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'Print #1, "</Folder>"
'
'
'' RxQual DL > 4 %
' Print #1, " <Folder>"
' Print #1, " <name>RxQual DL > 4 %</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("G" & RowTOP).Value) >= 1 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("G" & RowTOP).Value >= 0.5 And wsresult.Range("G" &
RowTOP).Value < 1 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("G" & RowTOP).Value >= 0.3 And wsresult.Range("G" &
RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CO" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CP" & i) &
".jpg""/>"
'
'' Print #1,
' Print #1, "]]></description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
'
'
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
' Print #1, " <ScreenOverlay> <name>CSSR</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/CSSR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'Print #1, "</Folder>"
'
'
''
' Print #1, " <Folder>"
' Print #1, " <name>RxQual UL > 4dBm (%)</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("G" & RowTOP).Value) >= 1 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("G" & RowTOP).Value >= 0.5 And wsresult.Range("G" &
RowTOP).Value < 1 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("G" & RowTOP).Value >= 0.3 And wsresult.Range("G" &
RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CO" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CP" & i) &
".jpg""/>"
'
'' Print #1,
' Print #1, "]]></description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
'
'
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
' Print #1, " <ScreenOverlay> <name>CSSR</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/CSSR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'Print #1, "</Folder>"
'
'
'
'
'
'
'
''MRR
'Print #1, "</Folder>"
'
'
''Fas Folder
'
'
'
' Print #1, " <Folder>"
' Print #1, " <name>FAS</name>"
'
'
' Print #1, " <Folder>"
' Print #1, " <name>Highest I.</name>"
'
'
'
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("F" & RowTOP).Value) >= 1 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("F" & RowTOP).Value >= 0.5 And wsresult.Range("F" &
RowTOP).Value < 1 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("F" & RowTOP).Value >= 0.3 And wsresult.Range("F" &
RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
'
''******************************* to make 3 Images
'
''<name>Untitled Placemark</name>
' ' <description><![CDATA[<img style="max-width:1000px;"
src="file:///C://GC2003A CSSR3.jpg">
' ' <img style="max-width:1000px;" src="file:///C:/GC2003A
DCR_Reasons_CHGR11.jpg">
' ' <img style="max-width:1000px;" src="file:///C:/Users/GC2003A
DCR_Reasons10.jpg">]]></description>
'
'
'
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CX" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CV" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CW" & i) & ".jpg""/>"
' ' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CU" & i) &
".jpg""/>"
'' Print #1,
' Print #1, "]]></description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
''C:\Users\Yousef.Shaban\Desktop\All on one Sheet Full KPIs
Analysis\Charts\Legend\DCR.png
'
'' Print #1, " <ScreenOverlay> <name>DCR</name>"
'' Print #1, " <visibility>0</visibility>"
'' Print #1, " <Icon>"
'' Print #1, " <href>"
'' Print #1, "./Legend/DCR.png"
'' Print #1, "</href>"
'' Print #1, " </Icon>"
'' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction""
yunits=""fraction""/>"
'' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction""
yunits=""fraction""/>"
'' Print #1, "</ScreenOverlay>"
'
'
'
'
'
''Print #1, "<overlayXY x=""; 0; "; y = ""; 1; " xunits=""; fraction; "" yunits="";
fraction; ""/>"
''Print #1, "<screenXY x=""; 0; "" y=""; 1; "" xunits=""; fraction; "" yunits="";
fraction; ""/>"
'
'
'
'
' RowTOP = RowTOP + 1
'Loop
'' Print #1, " <ScreenOverlay> <name>DCR</name>"
'' Print #1, " <visibility>0</visibility>"
'' Print #1, " <Icon>"
'' Print #1, " <href>"
'' Print #1, "./Legend/DCR.png"
'' Print #1, "</href>"
'' Print #1, " </Icon>"
'' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction""
yunits=""fraction""/>"
'' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction""
yunits=""fraction""/>"
'' Print #1, "</ScreenOverlay>"
'
''Print #1, "</Folder>"
'Print #1, "</Folder>"
'
''=================================================================================
========================================
'
'' For Loop CSSR Folders
*************************************************************************
''
' Print #1, " <Folder>"
' Print #1, " <name>average I.</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("G" & RowTOP).Value) >= 1 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("G" & RowTOP).Value >= 0.5 And wsresult.Range("G" &
RowTOP).Value < 1 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("G" & RowTOP).Value >= 0.3 And wsresult.Range("G" &
RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CO" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CP" & i) &
".jpg""/>"
'
'' Print #1,
' Print #1, "]]></description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
'
'
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
' Print #1, " <ScreenOverlay> <name>CSSR</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/CSSR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'Print #1, "</Folder>"
'
''Rx LeveL UL
' Print #1, " <Folder>"
' Print #1, " <name>BCCH I.</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("G" & RowTOP).Value) >= 1 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("G" & RowTOP).Value >= 0.5 And wsresult.Range("G" &
RowTOP).Value < 1 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("G" & RowTOP).Value >= 0.3 And wsresult.Range("G" &
RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CO" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CP" & i) &
".jpg""/>"
'
'' Print #1,
' Print #1, "]]></description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
'
'
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
' Print #1, " <ScreenOverlay> <name>CSSR</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/CSSR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'Print #1, "</Folder>"
'
'
'' RxQual DL > 4 %
' Print #1, " <Folder>"
' Print #1, " <name>Highest PIT</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("G" & RowTOP).Value) >= 1 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("G" & RowTOP).Value >= 0.5 And wsresult.Range("G" &
RowTOP).Value < 1 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("G" & RowTOP).Value >= 0.3 And wsresult.Range("G" &
RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CO" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CP" & i) &
".jpg""/>"
'
'' Print #1,
' Print #1, "]]></description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
'
'
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
' Print #1, " <ScreenOverlay> <name>CSSR</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/CSSR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'Print #1, "</Folder>"
'
'
''
'
'
'
'
''FAS
'
'Print #1, "</Folder>"
'RNO
Print #1, "</Folder>"

'
'' For Loop HOSR Folders
*************************************************************************
' Print #1, " <Folder>"
' Print #1, " <name>HOSR</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("L" & RowTOP).Value) >= 1 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("L" & RowTOP).Value >= 0.5 And wsresult.Range("L" &
RowTOP).Value < 1 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("L" & RowTOP).Value >= 0.3 And wsresult.Range("L" &
RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CN" & i) & ".jpg""/>]]>"
'' Print #1,
' Print #1, "</description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
'
' Print #1, " <ScreenOverlay> <name>HOSR</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/HOSR.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'
'
'
'
'
'
'Print #1, "</Folder>"
'
'
'' For Loop SQI Folders
*************************************************************************
' Print #1, " <Folder>"
' Print #1, " <name>SQI Bad</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("O" & RowTOP).Value) >= 1 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("O" & RowTOP).Value >= 0.5 And wsresult.Range("O" &
RowTOP).Value < 1 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("O" & RowTOP).Value >= 0.3 And wsresult.Range("O" &
RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CM" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CY" & i) &
".jpg""/>"
'
'' Print #1,
' Print #1, "]]></description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
'
' Print #1, " <ScreenOverlay> <name>SQI</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/SQI.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'
'
'Print #1, "</Folder>"
'
'
'' For Loop EDGE Folders
*************************************************************************
' Print #1, " <Folder>"
' Print #1, " <name>DL EDGE</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("R" & RowTOP).Value) >= 40 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("R" & RowTOP).Value >= 20 And wsresult.Range("R" &
RowTOP).Value < 30 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("R" & RowTOP).Value >= 10 And wsresult.Range("R" &
RowTOP).Value < 20 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CS" & i) & ".jpg""/>"
' Print #1, " <img src=""./Hourly_Charts/" & wsideaC.Range("CT" & i) &
".jpg""/>"
'
'' Print #1,
' Print #1, "]]></description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
'
'
' Print #1, " <ScreenOverlay> <name>EDGE</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/EDGE_DL.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'
'
'
'Print #1, "</Folder>"
'
'
'' For Loop Traffic Folders
*************************************************************************
' Print #1, " <Folder>"
' Print #1, " <name>Traffic</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("U" & RowTOP).Value) >= 3 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("U" & RowTOP).Value >= 2 And wsresult.Range("U" &
RowTOP).Value < 3 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("U" & RowTOP).Value >= 1 And wsresult.Range("U" &
RowTOP).Value < 2 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CU" & i) & ".jpg""/>]]>"
'' Print #1,
' Print #1, "</description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
'
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
'
'
'
' Print #1, " <ScreenOverlay> <name>Traffic</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/Traffic.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'
'
'
'
'
'
'Print #1, "</Folder>"
'
'
'' For Loop NQI Folders
*************************************************************************
' Print #1, " <Folder>"
' Print #1, " <name>NQI</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("X" & RowTOP).Value) >= 10 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("X" & RowTOP).Value >= 8 And wsresult.Range("X" &
RowTOP).Value < 10 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("X" & RowTOP).Value >= 5 And wsresult.Range("X" &
RowTOP).Value < 8 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CQ" & i) & ".jpg""/>]]>"
'' Print #1,
' Print #1, "</description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
'
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
'
' Print #1, " <ScreenOverlay> <name>NQI</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/NQI.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'
'
'
'Print #1, "</Folder>"
'
'
'' For Loop SDCCH Esatablishment Folders
*************************************************************************
' Print #1, " <Folder>"
' Print #1, " <name>SDCCH Esatablishment</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("AA" & RowTOP).Value) >= 10 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("AA" & RowTOP).Value >= 8 And wsresult.Range("AA" &
RowTOP).Value < 10 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("AA" & RowTOP).Value >= 5 And wsresult.Range("AA" &
RowTOP).Value < 8 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CR" & i) & ".jpg""/>]]>"
'' Print #1,
' Print #1, "</description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
' Print #1, " <ScreenOverlay> <name>SDCCH Esatablishment</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/SD_ES.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'
'
'
'
'
'Print #1, "</Folder>"
'
''' For Loop Paging SR Folders
*************************************************************************
'' Print #1, " <Folder>"
'' Print #1, " <name>Paging SR</name>"
'''
'''Print #1, " <Folder>"
''' Print #1, " <name> Daily Monitor </name>"
''' Print #1, " <visibility>0</visibility> "
''
''
''' For Loop Folders
'''Dim RowTOP As Integer
''RowTOP = 2
''Do Until (wsresult.Range("S" & RowTOP) = "")
''
''
''If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
''
''
''
'''Site Name
'' Print #1, "<Placemark>"
'' Print #1, "<name>"
'' Print #1, (wsresult.Range("V" & RowTOP))
'' Print #1, "</name>"
'' Print #1, "<visibility>0</visibility> "
'' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
'' Print #1, " <Point>"
'''
''' wsresult.Range ("S" & RowTOP)
'' Print #1, " <coordinates>"
'' Print #1, wsresult.Range("T" & RowTOP)
'' Print #1, ","
'' Print #1, wsresult.Range("S" & RowTOP)
''Print #1, ", 20"
'' Print #1, " </coordinates>"
'' Print #1, " </Point>"
'' Print #1, " </Placemark>"
''End If
''
''' Cell Name
'' Print #1, "<Placemark>"
'' Print #1, "<name>"
'' Print #1, (wsresult.Range("A" & RowTOP))
'' Print #1, "</name>"
'' Print #1, " <visibility>0</visibility>"
''
'' If (wsresult.Range("F" & RowTOP).Value) >= 1 Then
'' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
'''
'' ElseIf wsresult.Range("F" & RowTOP).Value >= 0.5 And wsresult.Range("F" &
RowTOP).Value < 1 Then
'' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
'''
'' ElseIf wsresult.Range("F" & RowTOP).Value >= 0.3 And wsresult.Range("F" &
RowTOP).Value < 0.5 Then
'' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
'' Else
'' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
'' End If
''
''
'' Print #1, "<MultiGeometry>"
'' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
''
'' Print #1, " <LinearRing><coordinates>"
''
''
''
''Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
'' Print #1, "</coordinates>"
'' Print #1, " </LinearRing>"
'' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
''
''
'' Print #1, "</Placemark>"
''
''
''
'' RowTOP = RowTOP + 1
''Loop
''
''Print #1, "</Folder>"
'
'' For Loop SQI Good Folders
*************************************************************************
' Print #1, " <Folder>"
' Print #1, " <name>SQI Good</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("AG" & RowTOP).Value) >= 2 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("AG" & RowTOP).Value >= 1 And wsresult.Range("AG" &
RowTOP).Value < 2 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("AG" & RowTOP).Value >= 0.5 And wsresult.Range("AG" &
RowTOP).Value < 1 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CM" & i) & ".jpg""/>]]>"
'' Print #1,
' Print #1, "</description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
'
'
' Print #1, " <ScreenOverlay> <name>SQI_Good</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/SQI_Good.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'
'
'
'
'
'Print #1, "</Folder>"
'
'
'' For Loop SDCCH Drop Rate Folders
*************************************************************************
' Print #1, " <Folder>"
' Print #1, " <name>SDCCH Drop Rate</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("AJ" & RowTOP).Value) >= 1 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("AJ" & RowTOP).Value >= 0.5 And wsresult.Range("AJ" &
RowTOP).Value < 1 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("AJ" & RowTOP).Value >= 0.3 And wsresult.Range("AJ" &
RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CO" & i) & ".jpg""/>]]>"
'' Print #1,
' Print #1, "</description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
'
' Print #1, " <ScreenOverlay> <name>SD_Drop</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/SD_Drop.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'
'
'
'
'
'
'
'
'
'Print #1, "</Folder>"
'
'
'' For Loop RACH Folders
*************************************************************************
' Print #1, " <Folder>"
' Print #1, " <name>RACH</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("AM" & RowTOP).Value) >= 1 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("AM" & RowTOP).Value >= 0.5 And wsresult.Range("AM" &
RowTOP).Value < 1 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("AM" & RowTOP).Value >= 0.3 And wsresult.Range("AM" &
RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CR" & i) & ".jpg""/>]]>"
'' Print #1,
' Print #1, "</description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
'
' Print #1, " <ScreenOverlay> <name>RACH</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/RACH.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'
'
'
'
'
'
'
'Print #1, "</Folder>"
'
'
'' For Loop NQI_EDGE Folders
*************************************************************************
' Print #1, " <Folder>"
' Print #1, " <name>NQI_EDGE</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("AP" & RowTOP).Value) >= 10 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("AP" & RowTOP).Value >= 7 And wsresult.Range("AP" &
RowTOP).Value < 10 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("AP" & RowTOP).Value >= 5 And wsresult.Range("AP" &
RowTOP).Value < 7 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CQ" & i) & ".jpg""/>]]>"
'' Print #1,
' Print #1, "</description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
'
' Print #1, " <ScreenOverlay> <name>NQI_EDGE</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/NQI_EDGE.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'
'
'
'
'
'
'
'
'Print #1, "</Folder>"
'' For Loop UL EDGE Throughput Folders
*************************************************************************
' Print #1, " <Folder>"
' Print #1, " <name>UL EDGE Throughput</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("AS" & RowTOP).Value) >= 40 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("AS" & RowTOP).Value >= 20 And wsresult.Range("AS" &
RowTOP).Value < 30 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("AS" & RowTOP).Value >= 10 And wsresult.Range("AS" &
RowTOP).Value < 20 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CS" & i) & ".jpg""/>]]>"
'' Print #1,
' Print #1, "</description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
'
' Next i
'
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
'
' Print #1, " <ScreenOverlay> <name>UL_EDGE</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/UL_EDGE.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'
'
'
'
'
'
'Print #1, "</Folder>"
'' For Loop PDCH Congestion Folders
*************************************************************************
' Print #1, " <Folder>"
' Print #1, " <name>SDCCH Congestion </name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("BE" & RowTOP).Value) > 0 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
'''
'' ElseIf wsresult.Range("AV" & RowTOP).Value >= 0.5 And wsresult.Range("AV" &
RowTOP).Value < 1 Then
'' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
'''
'' ElseIf wsresult.Range("AV" & RowTOP).Value >= 0.3 And wsresult.Range("AV" &
RowTOP).Value < 0.5 Then
'' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CP" & i) & ".jpg""/>]]>"
'' Print #1,
' Print #1, "</description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
''<description>
'' <![CDATA[<div align="center"><table width="500"><tr><td>
'' <a href="pics/IMG_0988.jpg"><img src="pics/IMG_0988.jpg" width="500"
height="373"></a>
'' </td></tr></table></div>]]>
''</description>
''
'Next i
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
'
' Print #1, " <ScreenOverlay> <name>SDCCH_Cong</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/SDCCH_Cong.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'
'
'
'
'
'
'Print #1, "</Folder>"
'
'' For Loop PDCH Drop Rate Folders
*************************************************************************
' Print #1, " <Folder>"
' Print #1, " <name>PDCH Congestion</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("AV" & RowTOP).Value) >= 1 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("AV" & RowTOP).Value >= 0.5 And wsresult.Range("AV" &
RowTOP).Value < 1 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("AV" & RowTOP).Value >= 0.1 And wsresult.Range("AV" &
RowTOP).Value < 0.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CT" & i) & ".jpg""/>]]>"
'' Print #1,
' Print #1, "</description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
'
' Next i
'
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
'
' Print #1, " <ScreenOverlay> <name>PDCH_Cong</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/PDCH_Cong.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'
'
'
'
'
'
'Print #1, "</Folder>"
'
'' For Loop PDCH Drop Rate Folders
*************************************************************************
' Print #1, " <Folder>"
' Print #1, " <name>IP Data Volume DL/s</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'
'RowTOP = 2
'
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("BH" & RowTOP).Value) >= 2 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
' ElseIf wsresult.Range("BH" & RowTOP).Value >= 1.5 And wsresult.Range("BH" &
RowTOP).Value < 2 Then
' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
''
' ElseIf wsresult.Range("BH" & RowTOP).Value >= 1 And wsresult.Range("BH" &
RowTOP).Value < 1.5 Then
' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' For i = 1 To 1000
'
' If wsideaC.Range("CL" & i) = wsresult.Range("A" & RowTOP) Then
''MsgBox "wsresult.Range(""CL"" & i)" & wsideaC.Range("CL" & i)
''MsgBox "wsresult.Range(""A"" & RowTOP)" & wsresult.Range("A" & RowTOP)
'
' 'You can write: Space
''<img src="buttons/bu%20hover.png" />
'''"\Hourly_Charts\"
'
' Print #1, " <description><![CDATA[<img src=""./Hourly_Charts/" &
wsideaC.Range("CT" & i) & ".jpg""/>]]>"
'' Print #1,
' Print #1, "</description>"
''<img src="img/apple_" + total + ".png" id="imageBox"/>
'End If
'
'
' Next i
'
'
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
'
'
' Print #1, " <ScreenOverlay> <name>IP_Data_Volume</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/IP_Data_Volume.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'
'
'
'
'
'
'
'
'Print #1, "</Folder>"
'
'
'' For Loop IP Latency Folders
*************************************************************************
' Print #1, " <Folder>"
' Print #1, " <name>IP Latency</name>"
''
''Print #1, " <Folder>"
'' Print #1, " <name> Daily Monitor </name>"
'' Print #1, " <visibility>0</visibility> "
'
'
'' For Loop Folders
''Dim RowTOP As Integer
'RowTOP = 2
'Do Until (wsresult.Range("S" & RowTOP) = "")
'
'
'If wsresult.Range("V" & RowTOP) <> wsresult.Range("V" & RowTOP + 1) Then
'
'
'
''Site Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("V" & RowTOP))
' Print #1, "</name>"
' Print #1, "<visibility>0</visibility> "
' Print #1, " <styleUrl>#sh_shaded_dot</styleUrl>"
' Print #1, " <Point>"
''
'' wsresult.Range ("S" & RowTOP)
' Print #1, " <coordinates>"
' Print #1, wsresult.Range("T" & RowTOP)
' Print #1, ","
' Print #1, wsresult.Range("S" & RowTOP)
'Print #1, ", 20"
' Print #1, " </coordinates>"
' Print #1, " </Point>"
' Print #1, " </Placemark>"
'End If
'
'' Cell Name
' Print #1, "<Placemark>"
' Print #1, "<name>"
' Print #1, (wsresult.Range("A" & RowTOP))
' Print #1, "</name>"
' Print #1, " <visibility>0</visibility>"
'
' If (wsresult.Range("F" & RowTOP).Value) >= 50 Then
' Print #1, " <styleUrl>#Cell_Red</styleUrl>"
''
'' ElseIf wsresult.Range("F" & RowTOP).Value >= 0.5 And wsresult.Range("F" &
RowTOP).Value < 1 Then
'' Print #1, " <styleUrl>#Cell_Orange</styleUrl>"
'''
'' ElseIf wsresult.Range("F" & RowTOP).Value >= 0.3 And wsresult.Range("F" &
RowTOP).Value < 0.5 Then
'' Print #1, " <styleUrl>#Cell_Yellow</styleUrl>"
' Else
' Print #1, " <styleUrl>#Cell_Green</styleUrl>"
' End If
'
'
' Print #1, "<MultiGeometry>"
' Print #1, "
<Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBou
ndaryIs>"
'
' Print #1, " <LinearRing><coordinates>"
'
'
'
'Print #1, (Polygon(wsresult.Range("T" & RowTOP), wsresult.Range("S" & RowTOP),
0.0015, wsresult.Range("U" & RowTOP)))
' Print #1, "</coordinates>"
' Print #1, " </LinearRing>"
' Print #1, " </outerBoundaryIs> </Polygon></MultiGeometry>"
'
'
' Print #1, "</Placemark>"
'
'
'
' RowTOP = RowTOP + 1
'Loop
'
' Print #1, " <ScreenOverlay> <name>IP_Latency</name>"
' Print #1, " <visibility>0</visibility>"
' Print #1, " <Icon>"
' Print #1, " <href>"
' Print #1, "./Legend/IP_Latency.png"
' Print #1, "</href>"
' Print #1, " </Icon>"
' Print #1, "<overlayXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, " <screenXY x=""0"" y=""1"" xunits=""fraction"" yunits=""fraction""/>"
' Print #1, "</ScreenOverlay>"
'
'Print #1, "</Folder>"

'Finish Folder Daily Monitor

'RNO Folder
'Print #1, "</Folder>"
'Print #1, "</Folder>"

Close #1

End Sub

Private Function Polygon(x As Double, y As Double, r As Double, Angle As Integer)


As String
' Dim Angle As Double
Dim Coords As String
Coords = ""
' Angle = 2 * 3.141592654 / n
'
'60 * pi / 180

' px11 = r * Sin(Angle * i) + x


' py11 = r * Cos(Angle * i) + y
' Coords = Coords & px11 & "," & py11 & ",5 "
Coords = Coords & x & "," & y & ",5 "
' For i = 1 To n - 1
' px = r * Sin(Angle * i) + x
' py = r * Cos(Angle * i) + y
' Coords = Coords & px & "," & py & ",5 "
' Next i

'Point 1
Const pi = 3.14159265358979
Dim val1 As Double
' Convert 60 degrees to radians by multiplying by pi/180.
val1 = Sin(60 * pi / 180)
'MsgBox "r " & r
'MsgBox "Sin(30) " & Sin(30)
'MsgBox "Sin(( 30 * (Pi / 180)) " & Sin((Angle + 30) * (pi / 180))
'MsgBox "Sin((30) * (pi / 180)) small " & Sin((30) * (pi / 180))
'MsgBox "x " & x

'Point 1

px1 = r * Sin((Angle + 30) * (pi / 180)) + x


py1 = r * Cos((Angle + 30) * (pi / 180)) + y

' px1 = r * Sin(360 - Angle + 30) + x


' py1 = r * Cos(360 - Angle + 30) + y
'' px1 = r * Sin(360 - Angle + 30) + x
' py1 = r * Cos(360 - Angle + 30) + y

''Point 2
px2 = r * Sin((Angle + 25) * (pi / 180)) + x
py2 = r * Cos((Angle + 25) * (pi / 180)) + y

'
''point 3
px3 = r * Sin((Angle + 20) * (pi / 180)) + x
py3 = r * Cos((Angle + 20) * (pi / 180)) + y
'
''point 4

px4 = r * Sin((Angle + 15) * (pi / 180)) + x


py4 = r * Cos((Angle + 15) * (pi / 180)) + y

'point 5
px5 = r * Sin((Angle + 10) * (pi / 180)) + x
py5 = r * Cos((Angle + 10) * (pi / 180)) + y

px6 = r * Sin((Angle + 5) * (pi / 180)) + x


py6 = r * Cos((Angle + 5) * (pi / 180)) + y

'Point 6 Center

px7 = r * Sin((Angle) * (pi / 180)) + x


py7 = r * Cos((Angle) * (pi / 180)) + y

'point 7

px8 = r * Sin((Angle - 5) * (pi / 180)) + x


py8 = r * Cos((Angle - 5) * (pi / 180)) + y

'point 8

px9 = r * Sin((Angle - 10) * (pi / 180)) + x


py9 = r * Cos((Angle - 10) * (pi / 180)) + y
'point 9

px10 = r * Sin((Angle - 15) * (pi / 180)) + x


py10 = r * Cos((Angle - 15) * (pi / 180)) + y

'point 10

px11 = r * Sin((Angle - 20) * (pi / 180)) + x


py11 = r * Cos((Angle - 20) * (pi / 180)) + y

'point 11

px12 = r * Sin((Angle - 25) * (pi / 180)) + x


py12 = r * Cos((Angle - 25) * (pi / 180)) + y

'point 12

px13 = r * Sin((Angle - 30) * (pi / 180)) + x


py13 = r * Cos((Angle - 30) * (pi / 180)) + y

'point 13 as the same start coordinates.

Coords = Coords & px1 & "," & py1 & ",5" & " " & px2 & "," & py2 & ",5" & " " &
px3 & "," & py3 & ",5" & " " & px4 & "," & py4 & ",5" & " " & px5 & "," & py5 &
",5" & " " & px6 & "," & py6 & ",5" & " " & px7 & "," & py7 & ",5" & " " & px8 &
"," & py8 & ",5" & " " & px9 & "," & py9 & ",5" & " " & px10 & "," & py10 & ",5" &
" " & px11 & "," & py11 & ",5" & " " & px12 & "," & py12 & ",5" & " " & x & "," & y
& ",5"
' Coords = Coords & px1 & "," & py1 & ",5" & " " & px3 & "," & py3 & ",5" & px5 &
"," & py5 & ",5" & " " & x & "," & y & ",5"
'Coords = Coords & px1 & "," & py1 & ",5" & " " & px2 & "," & py2 & ",5" & " " &
px3 & "," & py3 & ",5" & " " & x & "," & y & ",5"
'Coords = Coords & px1 & "," & py1 & " " & px2 & "," & py2 & ",5" & " " & x & "," &
y & ",5"

Polygon = Coords
End Function

Private Function PolygonP2(x As Double, y As Double, r As Double, Angle As Integer)


As String
' Dim Angle As Double
Dim Coords As String
Coords = ""
' Angle = 2 * 3.141592654 / n
'
'60 * pi / 180

' px11 = r * Sin(Angle * i) + x


' py11 = r * Cos(Angle * i) + y
' Coords = Coords & px11 & "," & py11 & ",0 "
Coords = Coords & x & "," & y & ",5 "
' For i = 1 To n - 1
' px = r * Sin(Angle * i) + x
' py = r * Cos(Angle * i) + y
' Coords = Coords & px & "," & py & ",0 "
' Next i

'Point 1
Const pi = 3.14159265358979
Dim val1 As Double
' Convert 60 degrees to radians by multiplying by pi/180.
val1 = Sin(60 * pi / 180)

'MsgBox "r " & r


'MsgBox "Sin(30) " & Sin(30)
'MsgBox "Sin(( 30 * (Pi / 180)) " & Sin((Angle + 30) * (pi / 180))
'MsgBox "Sin((30) * (pi / 180)) small " & Sin((30) * (pi / 180))
'MsgBox "x " & x

'Point 1

px1 = r * Sin((Angle + 30) * (pi / 180)) + x


py1 = r * Cos((Angle + 30) * (pi / 180)) + y

' px1 = r * Sin(360 - Angle + 30) + x


' py1 = r * Cos(360 - Angle + 30) + y
'' px1 = r * Sin(360 - Angle + 30) + x
' py1 = r * Cos(360 - Angle + 30) + y

''Point 2
px2 = r * Sin((Angle + 25) * (pi / 180)) + x
py2 = r * Cos((Angle + 25) * (pi / 180)) + y

'
''point 3
px3 = r * Sin((Angle + 20) * (pi / 180)) + x
py3 = r * Cos((Angle + 20) * (pi / 180)) + y
'
''point 4

px4 = r * Sin((Angle + 15) * (pi / 180)) + x


py4 = r * Cos((Angle + 15) * (pi / 180)) + y

'point 5
px5 = r * Sin((Angle + 10) * (pi / 180)) + x
py5 = r * Cos((Angle + 10) * (pi / 180)) + y

px6 = r * Sin((Angle + 5) * (pi / 180)) + x


py6 = r * Cos((Angle + 5) * (pi / 180)) + y

'Point 6 Center

px7 = r * Sin((Angle) * (pi / 180)) + x


py7 = r * Cos((Angle) * (pi / 180)) + y

'point 7
px8 = r * Sin((Angle - 5) * (pi / 180)) + x
py8 = r * Cos((Angle - 5) * (pi / 180)) + y

'point 8

px9 = r * Sin((Angle - 10) * (pi / 180)) + x


py9 = r * Cos((Angle - 10) * (pi / 180)) + y

'point 9

px10 = r * Sin((Angle - 15) * (pi / 180)) + x


py10 = r * Cos((Angle - 15) * (pi / 180)) + y

'point 10

px11 = r * Sin((Angle - 20) * (pi / 180)) + x


py11 = r * Cos((Angle - 20) * (pi / 180)) + y

'point 11

px12 = r * Sin((Angle - 25) * (pi / 180)) + x


py12 = r * Cos((Angle - 25) * (pi / 180)) + y

'point 12

px13 = r * Sin((Angle - 30) * (pi / 180)) + x


py13 = r * Cos((Angle - 30) * (pi / 180)) + y

'point 13 as the same start coordinates.

Coords = px1 & "," & py1 & ",5" & " " & px2 & "," & py2 & ",5" & " " & px3 & "," &
py3 & ",5" & " " & px4 & "," & py4 & ",5" & " " & px5 & "," & py5 & ",5" & " " &
px6 & "," & py6 & ",5" & " " & px7 & "," & py7 & ",5" & " " & px8 & "," & py8 &
",5" & " " & px9 & "," & py9 & ",5" & " " & px10 & "," & py10 & ",5" & " " & px11 &
"," & py11 & ",5" & " " & px1 & "," & py1 & ",5" ' & " " & px11 & "," & py11 & ",5"
& " " & x & "," & y & ",5"

'Coords = px1 & "," & py1 & ",5" & " " & px2 & "," & py2 & ",5" & " " & px3 & ","
& py3 & ",5" & " " & px4 & "," & py4 & ",5" & " " & px5 & "," & py5 & ",5" & " " &
px6 & "," & py6 & ",5" & " " & px7 & "," & py7 & ",5" & " " & px8 & "," & py8 &
",5" & " " & px9 & "," & py9 & ",5" & " " & px10 & "," & py10 & ",5" & " " & px11 &
"," & py11 & ",5" & " " & px12 & "," & py12 & ",5" & " " & px1 & "," & py1 & ",5" '
& " " & px11 & "," & py11 & ",5" & " " & x & "," & y & ",5"
' Coords = Coords & px1 & "," & py1 & ",5" & " " & px3 & "," & py3 & ",5" & px5 &
"," & py5 & ",5" & " " & x & "," & y & ",5"
'Coords = Coords & px1 & "," & py1 & ",5" & " " & px2 & "," & py2 & ",5" & " " &
px3 & "," & py3 & ",5" & " " & x & "," & y & ",5"
'Coords = Coords & px1 & "," & py1 & " " & px2 & "," & py2 & ",5" & " " & x & "," &
y & ",5"

PolygonP2 = Coords
End Function
Private Function PolygonP3(x As Double, y As Double, r As Double, Angle As Integer)
As String
' Dim Angle As Double
Dim Coords As String
Coords = ""
' Angle = 2 * 3.141592654 / n
'
'60 * pi / 180

' px11 = r * Sin(Angle * i) + x


' py11 = r * Cos(Angle * i) + y
' Coords = Coords & px11 & "," & py11 & ",0 "
Coords = Coords & x & "," & y & ",5 "
' For i = 1 To n - 1
' px = r * Sin(Angle * i) + x
' py = r * Cos(Angle * i) + y
' Coords = Coords & px & "," & py & ",0 "
' Next i

'Point 1
Const pi = 3.14159265358979
Dim val1 As Double
' Convert 60 degrees to radians by multiplying by pi/180.
val1 = Sin(60 * pi / 180)

'MsgBox "r " & r


'MsgBox "Sin(30) " & Sin(30)
'MsgBox "Sin(( 30 * (Pi / 180)) " & Sin((Angle + 30) * (pi / 180))
'MsgBox "Sin((30) * (pi / 180)) small " & Sin((30) * (pi / 180))
'MsgBox "x " & x

'Point 1
px1 = r * Sin((Angle + 32) * (pi / 180)) + x
py1 = r * Cos((Angle + 32) * (pi / 180)) + y
' px1 = r * Sin((Angle + 30) * (pi / 180)) + x
' py1 = r * Cos((Angle + 30) * (pi / 180)) + y
'
' px1 = r * Sin(360 - Angle + 30) + x
' py1 = r * Cos(360 - Angle + 30) + y
'' px1 = r * Sin(360 - Angle + 30) + x
' py1 = r * Cos(360 - Angle + 30) + y

''Point 2
px2 = r * Sin((Angle + 35) * (pi / 180)) + x
py2 = r * Cos((Angle + 35) * (pi / 180)) + y

'
'px2 = r * Sin((Angle + 25) * (pi / 180)) + x
' py2 = r * Cos((Angle + 25) * (pi / 180)) + y

'
''point 3
px3 = r * Sin((Angle + 20) * (pi / 180)) + x
py3 = r * Cos((Angle + 20) * (pi / 180)) + y
'
''point 4

px4 = r * Sin((Angle + 15) * (pi / 180)) + x


py4 = r * Cos((Angle + 15) * (pi / 180)) + y
'point 5
px5 = r * Sin((Angle + 10) * (pi / 180)) + x
py5 = r * Cos((Angle + 10) * (pi / 180)) + y

px6 = r * Sin((Angle + 5) * (pi / 180)) + x


py6 = r * Cos((Angle + 5) * (pi / 180)) + y

'Point 6 Center

px7 = r * Sin((Angle) * (pi / 180)) + x


py7 = r * Cos((Angle) * (pi / 180)) + y

'point 7

px8 = r * Sin((Angle - 5) * (pi / 180)) + x


py8 = r * Cos((Angle - 5) * (pi / 180)) + y

'point 8

px9 = r * Sin((Angle - 10) * (pi / 180)) + x


py9 = r * Cos((Angle - 10) * (pi / 180)) + y

'point 9

px10 = r * Sin((Angle - 15) * (pi / 180)) + x


py10 = r * Cos((Angle - 15) * (pi / 180)) + y

'point 10

px11 = r * Sin((Angle - 20) * (pi / 180)) + x


py11 = r * Cos((Angle - 20) * (pi / 180)) + y

'point 11

px12 = r * Sin((Angle - 25) * (pi / 180)) + x


py12 = r * Cos((Angle - 25) * (pi / 180)) + y

'point 12

px13 = r * Sin((Angle - 30) * (pi / 180)) + x


py13 = r * Cos((Angle - 30) * (pi / 180)) + y

'point 13 as the same start coordinates.

'Coords =

'Coords = px2 & "," & py2 & ",5" & " " & px3 & "," & py3 & ",5" & " " & px4 & ","
& py4 & ",5" & " " & px5 & "," & py5 & ",5" & " " & px6 & "," & py6 & ",5" & " " &
px7 & "," & py7 & ",5" & " " & px8 & "," & py8 & ",5" & " " & px9 & "," & py9 &
",5" & " " & px10 & "," & py10 & ",5" & " " & px11 & "," & py11 & ",5"

' & " " & px11 & "," & py11 & ",5" & " " & px12 & "," & py12 & ",5" & " " & x & ","
& y & ",5"
' Coords = Coords & px1 & "," & py1 & ",5" & " " & px3 & "," & py3 & ",5" & px5 &
"," & py5 & ",5" & " " & x & "," & y & ",5"
'Coords = Coords & px1 & "," & py1 & ",5" & " " & px2 & "," & py2 & ",5" & " " &
px3 & "," & py3 & ",5" & " " & x & "," & y & ",5"
'Coords = Coords & px1 & "," & py1 & " " & px2 & "," & py2 & ",5" & " " & x & "," &
y & ",5"
Coords = Coords & px1 & "," & py1 & ",5" & " " & px2 & "," & py2 & ",5" & " " & x &
"," & y & ",5"

PolygonP3 = Coords
End Function

Private Function PolygonP4(x As Double, y As Double, r As Double, Angle As Integer)


As String
' Dim Angle As Double
Dim Coords As String
Coords = ""
' Angle = 2 * 3.141592654 / n
'
'60 * pi / 180

' px11 = r * Sin(Angle * i) + x


' py11 = r * Cos(Angle * i) + y
' Coords = Coords & px11 & "," & py11 & ",0 "
Coords = Coords & x & "," & y & ",5 "
' For i = 1 To n - 1
' px = r * Sin(Angle * i) + x
' py = r * Cos(Angle * i) + y
' Coords = Coords & px & "," & py & ",0 "
' Next i

'Point 1
Const pi = 3.14159265358979
Dim val1 As Double
' Convert 60 degrees to radians by multiplying by pi/180.
val1 = Sin(60 * pi / 180)

'MsgBox "r " & r


'MsgBox "Sin(30) " & Sin(30)
'MsgBox "Sin(( 30 * (Pi / 180)) " & Sin((Angle + 30) * (pi / 180))
'MsgBox "Sin((30) * (pi / 180)) small " & Sin((30) * (pi / 180))
'MsgBox "x " & x

'Point 1
px1 = r * Sin((Angle - 27) * (pi / 180)) + x
py1 = r * Cos((Angle - 27) * (pi / 180)) + y
' px1 = r * Sin((Angle + 30) * (pi / 180)) + x
' py1 = r * Cos((Angle + 30) * (pi / 180)) + y
'
' px1 = r * Sin(360 - Angle + 30) + x
' py1 = r * Cos(360 - Angle + 30) + y
'' px1 = r * Sin(360 - Angle + 30) + x
' py1 = r * Cos(360 - Angle + 30) + y
''Point 2
px2 = r * Sin((Angle - 30) * (pi / 180)) + x
py2 = r * Cos((Angle - 30) * (pi / 180)) + y

'px2 = r * Sin((Angle + 25) * (pi / 180)) + x


' py2 = r * Cos((Angle + 25) * (pi / 180)) + y

'
''point 3
px3 = r * Sin((Angle + 20) * (pi / 180)) + x
py3 = r * Cos((Angle + 20) * (pi / 180)) + y
'
''point 4

px4 = r * Sin((Angle + 15) * (pi / 180)) + x


py4 = r * Cos((Angle + 15) * (pi / 180)) + y

'point 5
px5 = r * Sin((Angle + 10) * (pi / 180)) + x
py5 = r * Cos((Angle + 10) * (pi / 180)) + y

px6 = r * Sin((Angle + 5) * (pi / 180)) + x


py6 = r * Cos((Angle + 5) * (pi / 180)) + y

'Point 6 Center

px7 = r * Sin((Angle) * (pi / 180)) + x


py7 = r * Cos((Angle) * (pi / 180)) + y

'point 7

px8 = r * Sin((Angle - 5) * (pi / 180)) + x


py8 = r * Cos((Angle - 5) * (pi / 180)) + y

'point 8

px9 = r * Sin((Angle - 10) * (pi / 180)) + x


py9 = r * Cos((Angle - 10) * (pi / 180)) + y

'point 9

px10 = r * Sin((Angle - 15) * (pi / 180)) + x


py10 = r * Cos((Angle - 15) * (pi / 180)) + y

'point 10

px11 = r * Sin((Angle - 20) * (pi / 180)) + x


py11 = r * Cos((Angle - 20) * (pi / 180)) + y

'point 11
px12 = r * Sin((Angle - 25) * (pi / 180)) + x
py12 = r * Cos((Angle - 25) * (pi / 180)) + y

'point 12

px13 = r * Sin((Angle - 30) * (pi / 180)) + x


py13 = r * Cos((Angle - 30) * (pi / 180)) + y

'point 13 as the same start coordinates.

'Coords =

'Coords = px2 & "," & py2 & ",5" & " " & px3 & "," & py3 & ",5" & " " & px4 & ","
& py4 & ",5" & " " & px5 & "," & py5 & ",5" & " " & px6 & "," & py6 & ",5" & " " &
px7 & "," & py7 & ",5" & " " & px8 & "," & py8 & ",5" & " " & px9 & "," & py9 &
",5" & " " & px10 & "," & py10 & ",5" & " " & px11 & "," & py11 & ",5"

' & " " & px11 & "," & py11 & ",5" & " " & px12 & "," & py12 & ",5" & " " & x & ","
& y & ",5"
' Coords = Coords & px1 & "," & py1 & ",5" & " " & px3 & "," & py3 & ",5" & px5 &
"," & py5 & ",5" & " " & x & "," & y & ",5"
'Coords = Coords & px1 & "," & py1 & ",5" & " " & px2 & "," & py2 & ",5" & " " &
px3 & "," & py3 & ",5" & " " & x & "," & y & ",5"
'Coords = Coords & px1 & "," & py1 & ",5" & " " & px2 & "," & py2 & ",5" & " " & x
& "," & y & ",5"
'Coords = Coords & px1 & "," & py1 & ",5" & " " & px2 & "," & py2 & ",5" & " " &
px3 & "," & py3 x & "," & y & ",5"
Coords = Coords & px1 & "," & py1 & ",5" & " " & px2 & "," & py2 & ",5" & " " & x &
"," & y & ",5"
PolygonP4 = Coords
End Function

' if need to change Style of lines and poly Lines


'<Style id="style">
' <LineStyle>
' <color>ff000000</color>
' <width>3</width>
' </LineStyle>
' <PolyStyle>
' <color>800000ff</color>
' </PolyStyle>
' </Style>
' <Style id="style0">
' <LineStyle>
' <color>ff000000</color>
' <width>3</width>
' </LineStyle>
' <PolyStyle>
' <color>800000ff</color>
' </PolyStyle>
' </Style>
' <StyleMap id="stylemap_id2">
' <Pair>
' <key>normal</key>
' <styleUrl>#style0</styleUrl>
' </Pair>
' <Pair>
' <key>highlight</key>
' <styleUrl>#style</styleUrl>
' </Pair>
' </StyleMap>
Private Function PolygonT(x As Double, y As Double, r As Double, Angle As Integer)
As String
' Dim Angle As Double
Dim Coords As String
Coords = ""
' Angle = 2 * 3.141592654 / n
'
'60 * pi / 180

' px11 = r * Sin(Angle * i) + x


' py11 = r * Cos(Angle * i) + y
' Coords = Coords & px11 & "," & py11 & ",5 "
Coords = Coords & x & "," & y & ",10 "
' For i = 1 To n - 1
' px = r * Sin(Angle * i) + x
' py = r * Cos(Angle * i) + y
' Coords = Coords & px & "," & py & ",5 "
' Next i

'Point 1
Const pi = 3.14159265358979
Dim val1 As Double
' Convert 60 degrees to radians by multiplying by pi/180.
val1 = Sin(60 * pi / 180)

'MsgBox "r " & r


'MsgBox "Sin(30) " & Sin(30)
'MsgBox "Sin(( 30 * (Pi / 180)) " & Sin((Angle + 30) * (pi / 180))
'MsgBox "Sin((30) * (pi / 180)) small " & Sin((30) * (pi / 180))
'MsgBox "x " & x

'Point 1

px1 = r * Sin((Angle + 30) * (pi / 180)) + x


py1 = r * Cos((Angle + 30) * (pi / 180)) + y

' px1 = r * Sin(360 - Angle + 30) + x


' py1 = r * Cos(360 - Angle + 30) + y
'' px1 = r * Sin(360 - Angle + 30) + x
' py1 = r * Cos(360 - Angle + 30) + y

''Point 2
px2 = r * Sin((Angle + 25) * (pi / 180)) + x
py2 = r * Cos((Angle + 25) * (pi / 180)) + y

'
''point 3
px3 = r * Sin((Angle + 20) * (pi / 180)) + x
py3 = r * Cos((Angle + 20) * (pi / 180)) + y
'
''point 4

px4 = r * Sin((Angle + 15) * (pi / 180)) + x


py4 = r * Cos((Angle + 15) * (pi / 180)) + y
'point 5
px5 = r * Sin((Angle + 10) * (pi / 180)) + x
py5 = r * Cos((Angle + 10) * (pi / 180)) + y

px6 = r * Sin((Angle + 5) * (pi / 180)) + x


py6 = r * Cos((Angle + 5) * (pi / 180)) + y

'Point 6 Center

px7 = r * Sin((Angle) * (pi / 180)) + x


py7 = r * Cos((Angle) * (pi / 180)) + y

'point 7

px8 = r * Sin((Angle - 5) * (pi / 180)) + x


py8 = r * Cos((Angle - 5) * (pi / 180)) + y

'point 8

px9 = r * Sin((Angle - 10) * (pi / 180)) + x


py9 = r * Cos((Angle - 10) * (pi / 180)) + y

'point 9

px10 = r * Sin((Angle - 15) * (pi / 180)) + x


py10 = r * Cos((Angle - 15) * (pi / 180)) + y

'point 10

px11 = r * Sin((Angle - 20) * (pi / 180)) + x


py11 = r * Cos((Angle - 20) * (pi / 180)) + y

'point 11

px12 = r * Sin((Angle - 25) * (pi / 180)) + x


py12 = r * Cos((Angle - 25) * (pi / 180)) + y

'point 12

px13 = r * Sin((Angle - 30) * (pi / 180)) + x


py13 = r * Cos((Angle - 30) * (pi / 180)) + y

'point 13 as the same start coordinates.

Coords = Coords & px1 & "," & py1 & ",10" & " " & px2 & "," & py2 & ",10" & " " &
px3 & "," & py3 & ",10" & " " & px4 & "," & py4 & ",10" & " " & px5 & "," & py5 &
",10" & " " & px6 & "," & py6 & ",10" & " " & px7 & "," & py7 & ",10" & " " & px8 &
"," & py8 & ",10" & " " & px9 & "," & py9 & ",10" & " " & px10 & "," & py10 & ",10"
& " " & px11 & "," & py11 & ",10" & " " & px12 & "," & py12 & ",10" & " " & x & ","
& y & ",10"
' Coords = Coords & px1 & "," & py1 & ",5" & " " & px3 & "," & py3 & ",5" & px5 &
"," & py5 & ",5" & " " & x & "," & y & ",5"
'Coords = Coords & px1 & "," & py1 & ",5" & " " & px2 & "," & py2 & ",5" & " " &
px3 & "," & py3 & ",5" & " " & x & "," & y & ",5"
'Coords = Coords & px1 & "," & py1 & " " & px2 & "," & py2 & ",5" & " " & x & "," &
y & ",5"

PolygonT = Coords
End Function

'Lgened
'<ScreenOverlay> <name>Legend: Wetlands</name>
' <Icon>
' <href>
' C:\Users\Yousef.Shaban\Desktop\All on one Sheet Full KPIs
Analysis\Charts\GC2003C_DL_EDGE_Throughput18.png
' </href>
' </Icon>
' <overlayXY x="0" y="0" xunits="fraction" yunits="fraction"/>
' <screenXY x="25" y="95" xunits="pixels" yunits="pixels"/>
' <rotationXY x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
' <size x="0" y="0" xunits="pixels" yunits="pixels"/>
'</ScreenOverlay>

'<overlayXY x="1" y="1" xunits="fraction" yunits="fraction"/>


'<screenXY x="1" y="1" xunits="fraction" yunits="fraction"/>

Вам также может понравиться