SlideShare a Scribd company logo
ExportingmodulesfromExcel andimporting*.BAStoan Outlookstandalone license:
OptionExplicit'RequireVariable Declaration
PublicStopNowAsBoolean
DimStatus,ComPref,RMA,ETA As String
DimArrStatuses(),OnHoldMatrix(),TextAsString
DimCaseQuery,SVOResolve,SVOStatusAsObject
DimStatusQty,HeaderQty,Indices_TD_OnHoldMatrix(),i,uniq_i,j,m, n,nnAs Integer
DimTickIt,ClickAcceptAsBoolean
ConstUniqueStr= "Unassigned(PrmGen):PrmException("
ConstUniqueHeader="RMA/SVO#"
ConstUniqueLen= 36
ConstAcceptButton= "accept"
ConstSpaceString= " " ' itis unique thata new row of HTML table starts witha space
'ConstHold_ContactCustomer="Contact Customer"
ConstHold_ContactCustomer="AwaitLabor B2b ConfirmEsc"
ConstServiceRegion_Japan="Japan"
'**********************************
ConstCiscoLogin= "https://www.cisco.com/auths/forms/CDClogin.fcc?"'FormsCredential Controller
ConstuserID= "userInput"'inputfield
Constpassword= "passwordInput"'inputfield
Constloginbutton="login-button"'loginbutton
ConstmyCCO= "avymysli":ConstmyPW="Convergys03"
Private Subis_busy(ByVal internet)
Withinternet
Do While .Busy:DoEvents:Loop
Do While .ReadyState <>4: DoEvents:Loop
End With
DoEvents
Application.Wait(Now+TimeValue("0:00:3"))
End Sub
PublicSubScanningQueueForHold()
'On Error GoTo xyz
StopNow= False
Do While StopNow=False
SetSVOResolve=Nothing
If SVOResolve IsNothingThen
SetSVOResolve=CreateObject("InternetExplorer.Application")
End If
WithSVOResolve
.Left= 50
.Top = 50
.Height= 800
.Width= 1000
.MenuBar= 0
.Toolbar= 1
.StatusBar= 0
.Navigate "C:UsersAlesDesktopsvoresolve.htm"
'.Navigate "http://tools.cisco.com/serviceordertools/svoresolve/logon.do"
Do While SVOResolve.BusyAndNotSVOResolve.ReadyState=4: DoEvents:Loop
.Visible=1
End With
On Error Resume Next
'check logintoCisco
'login_domain : "https://www.cisco.com"
'login_target : "https://www.cisco.com/auths/setTargetCCO.html"
'bringsme here:
'https://www.cisco.com/auths/forms/CDClogin.fcc?TYPE=33619969&REALMOID=06-a0cd8fb0-a1d5-
1039-90c9-
83846dc90000&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=$SM$j43DnjO6UcZy5Uh
BHA2BIceJdrXGg0ZtxplLywmpPH%2f1QpkVVAvF5vZ0pU21szJG&TARGET=$SM$https%3a%2f%2fwww%
2ecisco%2ecom%2fauths%2fsetTargetCCO%2ehtml
'https://www.cisco.com/auths/forms/CDClogin.fcc?
Call is_busy(SVOResolve)
WithSVOResolve.Document
.getElementById(userID).Value =myCCO
On Error Resume Next
.getElementById(password).Value=myPW
On Error Resume Next
.getElementById(loginbutton).Click
On Error Resume Next
End With
Call is_busy(SVOResolve)
'clickon Prm Exception:
'RUN the JAVASCRIPTFunctionfromwithinVBA (Functionis:
setFilterQueue('queuesForm','PRM_GEN:PRM_EX') inthe HTML code)
SVOResolve.Document.all.Item
Call
SVOResolve.Document.parentWindow.execScript("setFilterQueue('queuesForm','PRM_GEN:PRM_EX')",
"JavaScript")
'it will refreshandnavigate here:
"http://tools.cisco.com/serviceordertools/svoresolve/FilteringAndQueuesGo.do"
Call is_busy(SVOResolve)
i = 0 'Index_<TD>= 0
Do While Text<> UniqueStr
Text= SVOResolve.Document.all.tags("td")(i).innerTEXT
If Mid(Text,1, UniqueLen) =UniqueStrThen
'returnsthe UniqueStrof the UniqueLenandcomparesitto the Const
StatusQty= Val(Mid(Text,UniqueLen+1))
'returnsthe rest of the string,startingat UniqueLen+1character,
'and convertsanynumerical value
Text= UniqueStr
End If
i = i + 1
Loop
If StatusQty> 0 Then
Do While Text<> UniqueHeader
Text= SVOResolve.Document.all.tags("td")(i).innerTEXT
uniq_i = i
i = i + 1
Loop
If Text= UniqueHeaderThen'e.g.if Text=RMA/SVO#
'read headersintoanarray until yougetsome true like 8digitnumberoremptystring
'thenwe have the unique index valuetostartreadingthe matrix from
HeaderQty= 1
'*******************************************************
m = 0
Do While Text<> SpaceString
ReDimPreserve OnHoldMatrix(StatusQty,HeaderQty - 1) 'firstrow reservedforheaders ->donot
decrementrowindex
OnHoldMatrix(m, HeaderQty - 1) = Text
ReDimPreserve Indices_TD_OnHoldMatrix(StatusQty,HeaderQty - 1)
Indices_TD_OnHoldMatrix(m,HeaderQty - 1) = i - 1
Text= SVOResolve.Document.all.tags("td")(i).innerTEXT'nextcell
i = i + 1
HeaderQty= HeaderQty+ 1
Loop
'*******************************************************
HeaderQty= HeaderQty - 1 ' correctionfor HeaderQty
For m = 1 To StatusQty
For n = 0 To HeaderQty - 1
Text= SVOResolve.Document.all.tags("td")(i).innerTEXT'nextcell
If Text= SpaceStringThen'readnextcell
i = i + 1
Text= SVOResolve.Document.all.tags("td")(i).innerTEXT
End If
OnHoldMatrix(m, n) =Text
Indices_TD_OnHoldMatrix(m,n) =i
i = i + 1
Nextn
Nextm
'*******************************************************
End If
End If
TickIt= True
For m = 1 To StatusQty
For n = 0 To HeaderQty - 1
If Mid(OnHoldMatrix(m,n),1,Len(Hold_ContactCustomer))=Hold_ContactCustomerThen
For nn = 0 To HeaderQty - 1
If OnHoldMatrix(m,nn) =ServiceRegion_JapanThen
TickIt= False
End If
Nextnn
If TickIt = True Then
i = Indices_TD_OnHoldMatrix(m, n)
SVOResolve.Document.getElementsByTagName("td")(i- (n+
1)).getElementsByTagName("input")(0).Checked=True
End If
End If
Nextn
Nextm
Call is_busy(SVOResolve)
'indexingstartsfrom0. There are only2 formsinthe html doc,so index is0 and 1. We need:
.getElementsByTagName("Form")(1)
'we search forinputtype = 'accept' tag/acceptbuttonthroughall formsuntil the endof document.Then
clickthe button
i = 0
j = 0
Text= ""
ClickAccept=False
Do While ClickAccept=False Ori <= SVOResolve.Document.forms.Length - 1
'For i = 0 To SVOResolve.Document.forms.Length - 1
'For j = 0 To SVOResolve.Document.forms(i).elements.Length - 1
Do Until LCase(Text) =AcceptButton Orj > SVOResolve.Document.forms(i).elements.Length - 1
Text= SVOResolve.Document.forms(i).elements(j).Value
If LCase(Text) =AcceptButtonThen
SVOResolve.Document.getElementsByTagName("Form")(i).getElementsByTagName("Input")(j).Click
Call is_busy(SVOResolve)
'we need:
SVOResolve.Document.getElementsByTagName("Form")(1).getElementsByTagName("Input")(4).Click
ClickAccept=True
End If
j = j + 1
Loop
i = i + 1
j = 0
'Nextj
'Nexti
Loop
'or: SVOResolve.Document.getElementsByName("accept").Item(0).Click
' RMA validation:
' If Len(Text) =8 And Val(Left(Text,1)) =8 Then
' ItIsNot_RMA_number= False
' EndIf
Call is_busy(SVOResolve)
Loop
End Sub

More Related Content

Viewers also liked

Btl en las canciones
Btl en las cancionesBtl en las canciones
Btl en las canciones
san231093
 
eng TELE-audiovision-1305
eng TELE-audiovision-1305eng TELE-audiovision-1305
eng TELE-audiovision-1305
TELE-audiovision eng
 
Sistema híbrido y cooperativo de traducción automática
Sistema híbrido y cooperativo de traducción automáticaSistema híbrido y cooperativo de traducción automática
Sistema híbrido y cooperativo de traducción automática
Joseba Abaitua
 
Cookies and European Union Law
Cookies and European Union LawCookies and European Union Law
Cookies and European Union Law
Reactive, part of Accenture Interactive
 
The faktory
The faktoryThe faktory
CDINFORMA NÚMERO 2631, 25 DE SHVAT DE 5774, 26 DE ENERO DE 2014
CDINFORMA NÚMERO 2631, 25 DE SHVAT DE 5774, 26 DE ENERO DE 2014CDINFORMA NÚMERO 2631, 25 DE SHVAT DE 5774, 26 DE ENERO DE 2014
CDINFORMA NÚMERO 2631, 25 DE SHVAT DE 5774, 26 DE ENERO DE 2014
Centro Deportivo Israelita
 
Atlanta Salesforce UG 2/23/2012: Release overview deck (spring '12)
Atlanta Salesforce UG 2/23/2012: Release overview deck (spring '12) Atlanta Salesforce UG 2/23/2012: Release overview deck (spring '12)
Atlanta Salesforce UG 2/23/2012: Release overview deck (spring '12)
vraopolisetti
 
Carta do turismo sustentável
Carta do turismo sustentávelCarta do turismo sustentável
Carta do turismo sustentável
Fernando Zornitta
 
Mercuri international studie vergütungssysteme im vertriebsaussendienst kom...
Mercuri international   studie vergütungssysteme im vertriebsaussendienst kom...Mercuri international   studie vergütungssysteme im vertriebsaussendienst kom...
Mercuri international studie vergütungssysteme im vertriebsaussendienst kom...
Christian Peters
 
Contracción muscular.
Contracción muscular.Contracción muscular.
Contracción muscular.
Universidad de Chile
 
Cingolino
CingolinoCingolino
Cingolino
mira-srl
 
Uk oil output 50 percent higher by 2018
Uk oil output 50 percent higher by 2018Uk oil output 50 percent higher by 2018
Uk oil output 50 percent higher by 2018
Derek Louden
 
Mano de Obra Cambio de Embrague Aveo
Mano de Obra Cambio de Embrague AveoMano de Obra Cambio de Embrague Aveo
Mano de Obra Cambio de Embrague Aveo
Innovacion Tecnologica PDAUTO, C.A.
 
Faam
FaamFaam
Faam
SAMFYRE
 
SIX Paymit solution - Disruptive Payment Solution for the Swiss market powere...
SIX Paymit solution - Disruptive Payment Solution for the Swiss market powere...SIX Paymit solution - Disruptive Payment Solution for the Swiss market powere...
SIX Paymit solution - Disruptive Payment Solution for the Swiss market powere...
Walter Strametz
 
Jornadas AGS Sur de Sevilla - Lecciones aprendidas
Jornadas AGS Sur de Sevilla - Lecciones aprendidasJornadas AGS Sur de Sevilla - Lecciones aprendidas
Jornadas AGS Sur de Sevilla - Lecciones aprendidas
AGS Sur de Sevilla
 
Libro responsabilida social empresarial visiones complenetarias
Libro responsabilida social empresarial visiones complenetariasLibro responsabilida social empresarial visiones complenetarias
Libro responsabilida social empresarial visiones complenetarias
Información Virtual
 
áNgulos Formados Por Paralelas Y Una Secante
áNgulos Formados Por Paralelas Y Una SecanteáNgulos Formados Por Paralelas Y Una Secante
áNgulos Formados Por Paralelas Y Una Secante
Manuel Duron
 
Yeye
YeyeYeye
Lesiones cervicales no cariosas
Lesiones cervicales no cariosasLesiones cervicales no cariosas
Lesiones cervicales no cariosas
Camilo Ignacio Barrientos
 

Viewers also liked (20)

Btl en las canciones
Btl en las cancionesBtl en las canciones
Btl en las canciones
 
eng TELE-audiovision-1305
eng TELE-audiovision-1305eng TELE-audiovision-1305
eng TELE-audiovision-1305
 
Sistema híbrido y cooperativo de traducción automática
Sistema híbrido y cooperativo de traducción automáticaSistema híbrido y cooperativo de traducción automática
Sistema híbrido y cooperativo de traducción automática
 
Cookies and European Union Law
Cookies and European Union LawCookies and European Union Law
Cookies and European Union Law
 
The faktory
The faktoryThe faktory
The faktory
 
CDINFORMA NÚMERO 2631, 25 DE SHVAT DE 5774, 26 DE ENERO DE 2014
CDINFORMA NÚMERO 2631, 25 DE SHVAT DE 5774, 26 DE ENERO DE 2014CDINFORMA NÚMERO 2631, 25 DE SHVAT DE 5774, 26 DE ENERO DE 2014
CDINFORMA NÚMERO 2631, 25 DE SHVAT DE 5774, 26 DE ENERO DE 2014
 
Atlanta Salesforce UG 2/23/2012: Release overview deck (spring '12)
Atlanta Salesforce UG 2/23/2012: Release overview deck (spring '12) Atlanta Salesforce UG 2/23/2012: Release overview deck (spring '12)
Atlanta Salesforce UG 2/23/2012: Release overview deck (spring '12)
 
Carta do turismo sustentável
Carta do turismo sustentávelCarta do turismo sustentável
Carta do turismo sustentável
 
Mercuri international studie vergütungssysteme im vertriebsaussendienst kom...
Mercuri international   studie vergütungssysteme im vertriebsaussendienst kom...Mercuri international   studie vergütungssysteme im vertriebsaussendienst kom...
Mercuri international studie vergütungssysteme im vertriebsaussendienst kom...
 
Contracción muscular.
Contracción muscular.Contracción muscular.
Contracción muscular.
 
Cingolino
CingolinoCingolino
Cingolino
 
Uk oil output 50 percent higher by 2018
Uk oil output 50 percent higher by 2018Uk oil output 50 percent higher by 2018
Uk oil output 50 percent higher by 2018
 
Mano de Obra Cambio de Embrague Aveo
Mano de Obra Cambio de Embrague AveoMano de Obra Cambio de Embrague Aveo
Mano de Obra Cambio de Embrague Aveo
 
Faam
FaamFaam
Faam
 
SIX Paymit solution - Disruptive Payment Solution for the Swiss market powere...
SIX Paymit solution - Disruptive Payment Solution for the Swiss market powere...SIX Paymit solution - Disruptive Payment Solution for the Swiss market powere...
SIX Paymit solution - Disruptive Payment Solution for the Swiss market powere...
 
Jornadas AGS Sur de Sevilla - Lecciones aprendidas
Jornadas AGS Sur de Sevilla - Lecciones aprendidasJornadas AGS Sur de Sevilla - Lecciones aprendidas
Jornadas AGS Sur de Sevilla - Lecciones aprendidas
 
Libro responsabilida social empresarial visiones complenetarias
Libro responsabilida social empresarial visiones complenetariasLibro responsabilida social empresarial visiones complenetarias
Libro responsabilida social empresarial visiones complenetarias
 
áNgulos Formados Por Paralelas Y Una Secante
áNgulos Formados Por Paralelas Y Una SecanteáNgulos Formados Por Paralelas Y Una Secante
áNgulos Formados Por Paralelas Y Una Secante
 
Yeye
YeyeYeye
Yeye
 
Lesiones cervicales no cariosas
Lesiones cervicales no cariosasLesiones cervicales no cariosas
Lesiones cervicales no cariosas
 

Similar to ©️ CISCO RMA Service Order Status Business Function

Vb Project ขั้นเทพ
Vb Project ขั้นเทพVb Project ขั้นเทพ
Vb Project ขั้นเทพ
Sinchai Lanon
 
Cassandra v3.0 at Rakuten meet-up on 12/2/2015
Cassandra v3.0 at Rakuten meet-up on 12/2/2015Cassandra v3.0 at Rakuten meet-up on 12/2/2015
Cassandra v3.0 at Rakuten meet-up on 12/2/2015
datastaxjp
 
The Ring programming language version 1.2 book - Part 48 of 84
The Ring programming language version 1.2 book - Part 48 of 84The Ring programming language version 1.2 book - Part 48 of 84
The Ring programming language version 1.2 book - Part 48 of 84
Mahmoud Samir Fayed
 
©️ Contact CISCO Clients - Cisco Logistics - ContactCustomer Business Function
©️ Contact CISCO Clients - Cisco Logistics - ContactCustomer Business Function©️ Contact CISCO Clients - Cisco Logistics - ContactCustomer Business Function
©️ Contact CISCO Clients - Cisco Logistics - ContactCustomer Business Functionnone
 
Deep dumpster diving 2010
Deep dumpster diving 2010Deep dumpster diving 2010
Deep dumpster diving 2010
RonnBlack
 
Ditec esoft C# project
Ditec esoft C# project Ditec esoft C# project
Ditec esoft C# project
K.K.T Madhusanka
 
Ditec esoft C# project
Ditec esoft C# projectDitec esoft C# project
Ditec esoft C# project
K.K.T Madhusanka
 
Kode vb.net
Kode vb.netKode vb.net
Kode vb.net
Azki Nabidin
 
Kode vb.net
Kode vb.netKode vb.net
Kode vb.net
Azki Nabidin
 
please code in c#- please note that im a complete beginner- northwind.docx
please code in c#- please note that im a complete beginner-  northwind.docxplease code in c#- please note that im a complete beginner-  northwind.docx
please code in c#- please note that im a complete beginner- northwind.docx
AustinaGRPaigey
 
Spring data access
Spring data accessSpring data access
Spring data access
명철 강
 
Inventory program in mca p1
Inventory program in mca p1Inventory program in mca p1
Inventory program in mca p1
rameshvvv
 
INSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVER
INSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVERINSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVER
INSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVER
Darwin Durand
 
The Ring programming language version 1.10 book - Part 38 of 212
The Ring programming language version 1.10 book - Part 38 of 212The Ring programming language version 1.10 book - Part 38 of 212
The Ring programming language version 1.10 book - Part 38 of 212
Mahmoud Samir Fayed
 
Story of static code analyzer development
Story of static code analyzer developmentStory of static code analyzer development
Story of static code analyzer development
Andrey Karpov
 
JavaScript Control Statements II
JavaScript Control Statements IIJavaScript Control Statements II
JavaScript Control Statements II
Reem Alattas
 
The Ring programming language version 1.10 book - Part 79 of 212
The Ring programming language version 1.10 book - Part 79 of 212The Ring programming language version 1.10 book - Part 79 of 212
The Ring programming language version 1.10 book - Part 79 of 212
Mahmoud Samir Fayed
 
An Introduction to Part of C++ STL
An Introduction to Part of C++ STLAn Introduction to Part of C++ STL
An Introduction to Part of C++ STL
乐群 陈
 
help me Java projectI put problem and my own code in the linkmy .pdf
help me Java projectI put problem and my own code in the linkmy .pdfhelp me Java projectI put problem and my own code in the linkmy .pdf
help me Java projectI put problem and my own code in the linkmy .pdf
arihantmum
 
Membuat aplikasi penjualan buku sederhana
Membuat aplikasi penjualan buku sederhanaMembuat aplikasi penjualan buku sederhana
Membuat aplikasi penjualan buku sederhana
Yusman Kurniadi
 

Similar to ©️ CISCO RMA Service Order Status Business Function (20)

Vb Project ขั้นเทพ
Vb Project ขั้นเทพVb Project ขั้นเทพ
Vb Project ขั้นเทพ
 
Cassandra v3.0 at Rakuten meet-up on 12/2/2015
Cassandra v3.0 at Rakuten meet-up on 12/2/2015Cassandra v3.0 at Rakuten meet-up on 12/2/2015
Cassandra v3.0 at Rakuten meet-up on 12/2/2015
 
The Ring programming language version 1.2 book - Part 48 of 84
The Ring programming language version 1.2 book - Part 48 of 84The Ring programming language version 1.2 book - Part 48 of 84
The Ring programming language version 1.2 book - Part 48 of 84
 
©️ Contact CISCO Clients - Cisco Logistics - ContactCustomer Business Function
©️ Contact CISCO Clients - Cisco Logistics - ContactCustomer Business Function©️ Contact CISCO Clients - Cisco Logistics - ContactCustomer Business Function
©️ Contact CISCO Clients - Cisco Logistics - ContactCustomer Business Function
 
Deep dumpster diving 2010
Deep dumpster diving 2010Deep dumpster diving 2010
Deep dumpster diving 2010
 
Ditec esoft C# project
Ditec esoft C# project Ditec esoft C# project
Ditec esoft C# project
 
Ditec esoft C# project
Ditec esoft C# projectDitec esoft C# project
Ditec esoft C# project
 
Kode vb.net
Kode vb.netKode vb.net
Kode vb.net
 
Kode vb.net
Kode vb.netKode vb.net
Kode vb.net
 
please code in c#- please note that im a complete beginner- northwind.docx
please code in c#- please note that im a complete beginner-  northwind.docxplease code in c#- please note that im a complete beginner-  northwind.docx
please code in c#- please note that im a complete beginner- northwind.docx
 
Spring data access
Spring data accessSpring data access
Spring data access
 
Inventory program in mca p1
Inventory program in mca p1Inventory program in mca p1
Inventory program in mca p1
 
INSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVER
INSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVERINSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVER
INSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVER
 
The Ring programming language version 1.10 book - Part 38 of 212
The Ring programming language version 1.10 book - Part 38 of 212The Ring programming language version 1.10 book - Part 38 of 212
The Ring programming language version 1.10 book - Part 38 of 212
 
Story of static code analyzer development
Story of static code analyzer developmentStory of static code analyzer development
Story of static code analyzer development
 
JavaScript Control Statements II
JavaScript Control Statements IIJavaScript Control Statements II
JavaScript Control Statements II
 
The Ring programming language version 1.10 book - Part 79 of 212
The Ring programming language version 1.10 book - Part 79 of 212The Ring programming language version 1.10 book - Part 79 of 212
The Ring programming language version 1.10 book - Part 79 of 212
 
An Introduction to Part of C++ STL
An Introduction to Part of C++ STLAn Introduction to Part of C++ STL
An Introduction to Part of C++ STL
 
help me Java projectI put problem and my own code in the linkmy .pdf
help me Java projectI put problem and my own code in the linkmy .pdfhelp me Java projectI put problem and my own code in the linkmy .pdf
help me Java projectI put problem and my own code in the linkmy .pdf
 
Membuat aplikasi penjualan buku sederhana
Membuat aplikasi penjualan buku sederhanaMembuat aplikasi penjualan buku sederhana
Membuat aplikasi penjualan buku sederhana
 

More from none

© Logistic_certificates_for_new_ideas.pdf
© Logistic_certificates_for_new_ideas.pdf© Logistic_certificates_for_new_ideas.pdf
© Logistic_certificates_for_new_ideas.pdf
none
 
University_Transcripts_Geological_Engineering.pdf
University_Transcripts_Geological_Engineering.pdfUniversity_Transcripts_Geological_Engineering.pdf
University_Transcripts_Geological_Engineering.pdf
none
 
IQ_Tests_GiGi_Certificate_2019-09-21.pdf
IQ_Tests_GiGi_Certificate_2019-09-21.pdfIQ_Tests_GiGi_Certificate_2019-09-21.pdf
IQ_Tests_GiGi_Certificate_2019-09-21.pdf
none
 
© Ales Vicky's Introduction to Theory of Special Relativity
©  Ales Vicky's  Introduction to Theory of Special Relativity©  Ales Vicky's  Introduction to Theory of Special Relativity
© Ales Vicky's Introduction to Theory of Special Relativity
none
 
©️ KANTAR Project Management - All Global Lightspeed Healthcare - 2006-2007
©️ KANTAR Project Management - All Global Lightspeed Healthcare - 2006-2007©️ KANTAR Project Management - All Global Lightspeed Healthcare - 2006-2007
©️ KANTAR Project Management - All Global Lightspeed Healthcare - 2006-2007
none
 
©️ One of my PROJECTS for MICROSOFT Retail Logistics - Part B
©️ One of my PROJECTS for MICROSOFT Retail Logistics - Part B©️ One of my PROJECTS for MICROSOFT Retail Logistics - Part B
©️ One of my PROJECTS for MICROSOFT Retail Logistics - Part Bnone
 
©️ One of my PROJECTS for MICROSOFT Retail Logistics - AutoRAS - Part C
©️ One of my PROJECTS for MICROSOFT Retail Logistics - AutoRAS - Part C©️ One of my PROJECTS for MICROSOFT Retail Logistics - AutoRAS - Part C
©️ One of my PROJECTS for MICROSOFT Retail Logistics - AutoRAS - Part Cnone
 
©️ One of my PROJECTS for MICROSOFT Retail Logistics - SKU_set-up_Best Buy PC...
©️ One of my PROJECTS for MICROSOFT Retail Logistics - SKU_set-up_Best Buy PC...©️ One of my PROJECTS for MICROSOFT Retail Logistics - SKU_set-up_Best Buy PC...
©️ One of my PROJECTS for MICROSOFT Retail Logistics - SKU_set-up_Best Buy PC...none
 
©️ SAP ERP Strategy - One of my PowerPoint Presentations - as of February 2012
©️ SAP ERP Strategy - One of my PowerPoint Presentations - as of February 2012©️ SAP ERP Strategy - One of my PowerPoint Presentations - as of February 2012
©️ SAP ERP Strategy - One of my PowerPoint Presentations - as of February 2012none
 
©️ HTC Smartphones - Qualitative Marketing Research & Customer-Focused Insigh...
©️ HTC Smartphones - Qualitative Marketing Research & Customer-Focused Insigh...©️ HTC Smartphones - Qualitative Marketing Research & Customer-Focused Insigh...
©️ HTC Smartphones - Qualitative Marketing Research & Customer-Focused Insigh...none
 
©️ My Own CISCO BRAINSTORMING IDEAS for CISCO Logistics
©️ My Own CISCO BRAINSTORMING IDEAS for CISCO Logistics©️ My Own CISCO BRAINSTORMING IDEAS for CISCO Logistics
©️ My Own CISCO BRAINSTORMING IDEAS for CISCO Logisticsnone
 

More from none (11)

© Logistic_certificates_for_new_ideas.pdf
© Logistic_certificates_for_new_ideas.pdf© Logistic_certificates_for_new_ideas.pdf
© Logistic_certificates_for_new_ideas.pdf
 
University_Transcripts_Geological_Engineering.pdf
University_Transcripts_Geological_Engineering.pdfUniversity_Transcripts_Geological_Engineering.pdf
University_Transcripts_Geological_Engineering.pdf
 
IQ_Tests_GiGi_Certificate_2019-09-21.pdf
IQ_Tests_GiGi_Certificate_2019-09-21.pdfIQ_Tests_GiGi_Certificate_2019-09-21.pdf
IQ_Tests_GiGi_Certificate_2019-09-21.pdf
 
© Ales Vicky's Introduction to Theory of Special Relativity
©  Ales Vicky's  Introduction to Theory of Special Relativity©  Ales Vicky's  Introduction to Theory of Special Relativity
© Ales Vicky's Introduction to Theory of Special Relativity
 
©️ KANTAR Project Management - All Global Lightspeed Healthcare - 2006-2007
©️ KANTAR Project Management - All Global Lightspeed Healthcare - 2006-2007©️ KANTAR Project Management - All Global Lightspeed Healthcare - 2006-2007
©️ KANTAR Project Management - All Global Lightspeed Healthcare - 2006-2007
 
©️ One of my PROJECTS for MICROSOFT Retail Logistics - Part B
©️ One of my PROJECTS for MICROSOFT Retail Logistics - Part B©️ One of my PROJECTS for MICROSOFT Retail Logistics - Part B
©️ One of my PROJECTS for MICROSOFT Retail Logistics - Part B
 
©️ One of my PROJECTS for MICROSOFT Retail Logistics - AutoRAS - Part C
©️ One of my PROJECTS for MICROSOFT Retail Logistics - AutoRAS - Part C©️ One of my PROJECTS for MICROSOFT Retail Logistics - AutoRAS - Part C
©️ One of my PROJECTS for MICROSOFT Retail Logistics - AutoRAS - Part C
 
©️ One of my PROJECTS for MICROSOFT Retail Logistics - SKU_set-up_Best Buy PC...
©️ One of my PROJECTS for MICROSOFT Retail Logistics - SKU_set-up_Best Buy PC...©️ One of my PROJECTS for MICROSOFT Retail Logistics - SKU_set-up_Best Buy PC...
©️ One of my PROJECTS for MICROSOFT Retail Logistics - SKU_set-up_Best Buy PC...
 
©️ SAP ERP Strategy - One of my PowerPoint Presentations - as of February 2012
©️ SAP ERP Strategy - One of my PowerPoint Presentations - as of February 2012©️ SAP ERP Strategy - One of my PowerPoint Presentations - as of February 2012
©️ SAP ERP Strategy - One of my PowerPoint Presentations - as of February 2012
 
©️ HTC Smartphones - Qualitative Marketing Research & Customer-Focused Insigh...
©️ HTC Smartphones - Qualitative Marketing Research & Customer-Focused Insigh...©️ HTC Smartphones - Qualitative Marketing Research & Customer-Focused Insigh...
©️ HTC Smartphones - Qualitative Marketing Research & Customer-Focused Insigh...
 
©️ My Own CISCO BRAINSTORMING IDEAS for CISCO Logistics
©️ My Own CISCO BRAINSTORMING IDEAS for CISCO Logistics©️ My Own CISCO BRAINSTORMING IDEAS for CISCO Logistics
©️ My Own CISCO BRAINSTORMING IDEAS for CISCO Logistics
 

Recently uploaded

OOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming languageOOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming language
PreethaV16
 
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
DharmaBanothu
 
Butterfly Valves Manufacturer (LBF Series).pdf
Butterfly Valves Manufacturer (LBF Series).pdfButterfly Valves Manufacturer (LBF Series).pdf
Butterfly Valves Manufacturer (LBF Series).pdf
Lubi Valves
 
Determination of Equivalent Circuit parameters and performance characteristic...
Determination of Equivalent Circuit parameters and performance characteristic...Determination of Equivalent Circuit parameters and performance characteristic...
Determination of Equivalent Circuit parameters and performance characteristic...
pvpriya2
 
Impartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 StandardImpartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 Standard
MuhammadJazib15
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
Paris Salesforce Developer Group
 
Introduction to Artificial Intelligence.
Introduction to Artificial Intelligence.Introduction to Artificial Intelligence.
Introduction to Artificial Intelligence.
supriyaDicholkar1
 
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptxSENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
b0754201
 
Blood finder application project report (1).pdf
Blood finder application project report (1).pdfBlood finder application project report (1).pdf
Blood finder application project report (1).pdf
Kamal Acharya
 
Open Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surfaceOpen Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surface
Indrajeet sahu
 
openshift technical overview - Flow of openshift containerisatoin
openshift technical overview - Flow of openshift containerisatoinopenshift technical overview - Flow of openshift containerisatoin
openshift technical overview - Flow of openshift containerisatoin
snaprevwdev
 
3rd International Conference on Artificial Intelligence Advances (AIAD 2024)
3rd International Conference on Artificial Intelligence Advances (AIAD 2024)3rd International Conference on Artificial Intelligence Advances (AIAD 2024)
3rd International Conference on Artificial Intelligence Advances (AIAD 2024)
GiselleginaGloria
 
Beckhoff Programmable Logic Control Overview Presentation
Beckhoff Programmable Logic Control Overview PresentationBeckhoff Programmable Logic Control Overview Presentation
Beckhoff Programmable Logic Control Overview Presentation
VanTuDuong1
 
DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...
DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...
DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...
OKORIE1
 
Accident detection system project report.pdf
Accident detection system project report.pdfAccident detection system project report.pdf
Accident detection system project report.pdf
Kamal Acharya
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
PreethaV16
 
Digital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptxDigital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptx
aryanpankaj78
 
ITSM Integration with MuleSoft.pptx
ITSM  Integration with MuleSoft.pptxITSM  Integration with MuleSoft.pptx
ITSM Integration with MuleSoft.pptx
VANDANAMOHANGOUDA
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
Atif Razi
 
Properties of Fluids, Fluid Statics, Pressure Measurement
Properties of Fluids, Fluid Statics, Pressure MeasurementProperties of Fluids, Fluid Statics, Pressure Measurement
Properties of Fluids, Fluid Statics, Pressure Measurement
Indrajeet sahu
 

Recently uploaded (20)

OOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming languageOOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming language
 
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
 
Butterfly Valves Manufacturer (LBF Series).pdf
Butterfly Valves Manufacturer (LBF Series).pdfButterfly Valves Manufacturer (LBF Series).pdf
Butterfly Valves Manufacturer (LBF Series).pdf
 
Determination of Equivalent Circuit parameters and performance characteristic...
Determination of Equivalent Circuit parameters and performance characteristic...Determination of Equivalent Circuit parameters and performance characteristic...
Determination of Equivalent Circuit parameters and performance characteristic...
 
Impartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 StandardImpartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 Standard
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
 
Introduction to Artificial Intelligence.
Introduction to Artificial Intelligence.Introduction to Artificial Intelligence.
Introduction to Artificial Intelligence.
 
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptxSENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
 
Blood finder application project report (1).pdf
Blood finder application project report (1).pdfBlood finder application project report (1).pdf
Blood finder application project report (1).pdf
 
Open Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surfaceOpen Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surface
 
openshift technical overview - Flow of openshift containerisatoin
openshift technical overview - Flow of openshift containerisatoinopenshift technical overview - Flow of openshift containerisatoin
openshift technical overview - Flow of openshift containerisatoin
 
3rd International Conference on Artificial Intelligence Advances (AIAD 2024)
3rd International Conference on Artificial Intelligence Advances (AIAD 2024)3rd International Conference on Artificial Intelligence Advances (AIAD 2024)
3rd International Conference on Artificial Intelligence Advances (AIAD 2024)
 
Beckhoff Programmable Logic Control Overview Presentation
Beckhoff Programmable Logic Control Overview PresentationBeckhoff Programmable Logic Control Overview Presentation
Beckhoff Programmable Logic Control Overview Presentation
 
DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...
DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...
DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...
 
Accident detection system project report.pdf
Accident detection system project report.pdfAccident detection system project report.pdf
Accident detection system project report.pdf
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
 
Digital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptxDigital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptx
 
ITSM Integration with MuleSoft.pptx
ITSM  Integration with MuleSoft.pptxITSM  Integration with MuleSoft.pptx
ITSM Integration with MuleSoft.pptx
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
 
Properties of Fluids, Fluid Statics, Pressure Measurement
Properties of Fluids, Fluid Statics, Pressure MeasurementProperties of Fluids, Fluid Statics, Pressure Measurement
Properties of Fluids, Fluid Statics, Pressure Measurement
 

©️ CISCO RMA Service Order Status Business Function

  • 1. ExportingmodulesfromExcel andimporting*.BAStoan Outlookstandalone license: OptionExplicit'RequireVariable Declaration PublicStopNowAsBoolean DimStatus,ComPref,RMA,ETA As String DimArrStatuses(),OnHoldMatrix(),TextAsString DimCaseQuery,SVOResolve,SVOStatusAsObject DimStatusQty,HeaderQty,Indices_TD_OnHoldMatrix(),i,uniq_i,j,m, n,nnAs Integer DimTickIt,ClickAcceptAsBoolean ConstUniqueStr= "Unassigned(PrmGen):PrmException(" ConstUniqueHeader="RMA/SVO#" ConstUniqueLen= 36 ConstAcceptButton= "accept" ConstSpaceString= " " ' itis unique thata new row of HTML table starts witha space 'ConstHold_ContactCustomer="Contact Customer" ConstHold_ContactCustomer="AwaitLabor B2b ConfirmEsc" ConstServiceRegion_Japan="Japan" '********************************** ConstCiscoLogin= "https://www.cisco.com/auths/forms/CDClogin.fcc?"'FormsCredential Controller ConstuserID= "userInput"'inputfield Constpassword= "passwordInput"'inputfield Constloginbutton="login-button"'loginbutton ConstmyCCO= "avymysli":ConstmyPW="Convergys03"
  • 2. Private Subis_busy(ByVal internet) Withinternet Do While .Busy:DoEvents:Loop Do While .ReadyState <>4: DoEvents:Loop End With DoEvents Application.Wait(Now+TimeValue("0:00:3")) End Sub PublicSubScanningQueueForHold() 'On Error GoTo xyz StopNow= False Do While StopNow=False SetSVOResolve=Nothing If SVOResolve IsNothingThen SetSVOResolve=CreateObject("InternetExplorer.Application") End If WithSVOResolve .Left= 50 .Top = 50 .Height= 800 .Width= 1000 .MenuBar= 0 .Toolbar= 1 .StatusBar= 0 .Navigate "C:UsersAlesDesktopsvoresolve.htm"
  • 3. '.Navigate "http://tools.cisco.com/serviceordertools/svoresolve/logon.do" Do While SVOResolve.BusyAndNotSVOResolve.ReadyState=4: DoEvents:Loop .Visible=1 End With On Error Resume Next 'check logintoCisco 'login_domain : "https://www.cisco.com" 'login_target : "https://www.cisco.com/auths/setTargetCCO.html" 'bringsme here: 'https://www.cisco.com/auths/forms/CDClogin.fcc?TYPE=33619969&REALMOID=06-a0cd8fb0-a1d5- 1039-90c9- 83846dc90000&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=$SM$j43DnjO6UcZy5Uh BHA2BIceJdrXGg0ZtxplLywmpPH%2f1QpkVVAvF5vZ0pU21szJG&TARGET=$SM$https%3a%2f%2fwww% 2ecisco%2ecom%2fauths%2fsetTargetCCO%2ehtml 'https://www.cisco.com/auths/forms/CDClogin.fcc? Call is_busy(SVOResolve) WithSVOResolve.Document .getElementById(userID).Value =myCCO On Error Resume Next .getElementById(password).Value=myPW On Error Resume Next .getElementById(loginbutton).Click On Error Resume Next End With Call is_busy(SVOResolve) 'clickon Prm Exception:
  • 4. 'RUN the JAVASCRIPTFunctionfromwithinVBA (Functionis: setFilterQueue('queuesForm','PRM_GEN:PRM_EX') inthe HTML code) SVOResolve.Document.all.Item Call SVOResolve.Document.parentWindow.execScript("setFilterQueue('queuesForm','PRM_GEN:PRM_EX')", "JavaScript") 'it will refreshandnavigate here: "http://tools.cisco.com/serviceordertools/svoresolve/FilteringAndQueuesGo.do" Call is_busy(SVOResolve) i = 0 'Index_<TD>= 0 Do While Text<> UniqueStr Text= SVOResolve.Document.all.tags("td")(i).innerTEXT If Mid(Text,1, UniqueLen) =UniqueStrThen 'returnsthe UniqueStrof the UniqueLenandcomparesitto the Const StatusQty= Val(Mid(Text,UniqueLen+1)) 'returnsthe rest of the string,startingat UniqueLen+1character, 'and convertsanynumerical value Text= UniqueStr End If i = i + 1 Loop If StatusQty> 0 Then Do While Text<> UniqueHeader Text= SVOResolve.Document.all.tags("td")(i).innerTEXT uniq_i = i i = i + 1 Loop
  • 5. If Text= UniqueHeaderThen'e.g.if Text=RMA/SVO# 'read headersintoanarray until yougetsome true like 8digitnumberoremptystring 'thenwe have the unique index valuetostartreadingthe matrix from HeaderQty= 1 '******************************************************* m = 0 Do While Text<> SpaceString ReDimPreserve OnHoldMatrix(StatusQty,HeaderQty - 1) 'firstrow reservedforheaders ->donot decrementrowindex OnHoldMatrix(m, HeaderQty - 1) = Text ReDimPreserve Indices_TD_OnHoldMatrix(StatusQty,HeaderQty - 1) Indices_TD_OnHoldMatrix(m,HeaderQty - 1) = i - 1 Text= SVOResolve.Document.all.tags("td")(i).innerTEXT'nextcell i = i + 1 HeaderQty= HeaderQty+ 1 Loop '******************************************************* HeaderQty= HeaderQty - 1 ' correctionfor HeaderQty For m = 1 To StatusQty For n = 0 To HeaderQty - 1 Text= SVOResolve.Document.all.tags("td")(i).innerTEXT'nextcell If Text= SpaceStringThen'readnextcell i = i + 1 Text= SVOResolve.Document.all.tags("td")(i).innerTEXT End If OnHoldMatrix(m, n) =Text Indices_TD_OnHoldMatrix(m,n) =i i = i + 1
  • 6. Nextn Nextm '******************************************************* End If End If TickIt= True For m = 1 To StatusQty For n = 0 To HeaderQty - 1 If Mid(OnHoldMatrix(m,n),1,Len(Hold_ContactCustomer))=Hold_ContactCustomerThen For nn = 0 To HeaderQty - 1 If OnHoldMatrix(m,nn) =ServiceRegion_JapanThen TickIt= False End If Nextnn If TickIt = True Then i = Indices_TD_OnHoldMatrix(m, n) SVOResolve.Document.getElementsByTagName("td")(i- (n+ 1)).getElementsByTagName("input")(0).Checked=True End If End If Nextn Nextm Call is_busy(SVOResolve) 'indexingstartsfrom0. There are only2 formsinthe html doc,so index is0 and 1. We need: .getElementsByTagName("Form")(1)
  • 7. 'we search forinputtype = 'accept' tag/acceptbuttonthroughall formsuntil the endof document.Then clickthe button i = 0 j = 0 Text= "" ClickAccept=False Do While ClickAccept=False Ori <= SVOResolve.Document.forms.Length - 1 'For i = 0 To SVOResolve.Document.forms.Length - 1 'For j = 0 To SVOResolve.Document.forms(i).elements.Length - 1 Do Until LCase(Text) =AcceptButton Orj > SVOResolve.Document.forms(i).elements.Length - 1 Text= SVOResolve.Document.forms(i).elements(j).Value If LCase(Text) =AcceptButtonThen SVOResolve.Document.getElementsByTagName("Form")(i).getElementsByTagName("Input")(j).Click Call is_busy(SVOResolve) 'we need: SVOResolve.Document.getElementsByTagName("Form")(1).getElementsByTagName("Input")(4).Click ClickAccept=True End If j = j + 1 Loop i = i + 1 j = 0 'Nextj 'Nexti Loop 'or: SVOResolve.Document.getElementsByName("accept").Item(0).Click
  • 8. ' RMA validation: ' If Len(Text) =8 And Val(Left(Text,1)) =8 Then ' ItIsNot_RMA_number= False ' EndIf Call is_busy(SVOResolve) Loop End Sub