2º Parte...
Código: Selecionar todos
Dim er As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
er = 2
Dim et As Integer
et = 2
If Me.ComboBox1 = "LI-L32-S.POMP" Then ''CONTAGEM DIVISÃO DE MACRO 20
Do While Plan58.Range("ep" & i) <> ""
txtcrediarista.AddItem Plan58.Range("ep" & i)
i = i + 1
Loop
Do While Plan58.Range("er" & er) <> ""
txtanalistacredito.AddItem Plan58.Range("er" & er)
er = er + 1
Loop
Do While Plan58.Range("et" & et) <> ""
txtjustificativaanalista.AddItem Plan58.Range("et" & et)
et = et + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan36.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan36.Range("a" & linha))
Lista.SubItems(1) = Format(Plan36.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan36.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan36.Range("d" & linha)
Lista.SubItems(4) = Plan36.Range("e" & linha)
Lista.SubItems(5) = Plan36.Range("f" & linha)
Lista.SubItems(6) = Plan36.Range("g" & linha)
Lista.SubItems(7) = Plan36.Range("h" & linha)
Lista.SubItems(8) = Plan36.Range("i" & linha)
Lista.SubItems(9) = Plan36.Range("j" & linha)
Lista.SubItems(10) = Plan36.Range("k" & linha)
Lista.SubItems(11) = Plan36.Range("l" & linha)
linha = linha + 1
Loop
End If
Dim ey As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
ey = 2
Dim fa As Integer
fa = 2
If Me.ComboBox1 = "LI-L33-B.RBCO" Then ''CONTAGEM DIVISÃO DE MACRO 21
Do While Plan58.Range("ew" & i) <> ""
txtcrediarista.AddItem Plan58.Range("ew" & i)
i = i + 1
Loop
Do While Plan58.Range("ey" & ey) <> ""
txtanalistacredito.AddItem Plan58.Range("ey" & ey)
ey = ey + 1
Loop
Do While Plan58.Range("fa" & fa) <> ""
txtjustificativaanalista.AddItem Plan58.Range("fa" & fa)
fa = fa + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan37.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan37.Range("a" & linha))
Lista.SubItems(1) = Format(Plan37.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan37.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan37.Range("d" & linha)
Lista.SubItems(4) = Plan37.Range("e" & linha)
Lista.SubItems(5) = Plan37.Range("f" & linha)
Lista.SubItems(6) = Plan37.Range("g" & linha)
Lista.SubItems(7) = Plan37.Range("h" & linha)
Lista.SubItems(8) = Plan37.Range("i" & linha)
Lista.SubItems(9) = Plan37.Range("j" & linha)
Lista.SubItems(10) = Plan37.Range("k" & linha)
Lista.SubItems(11) = Plan37.Range("l" & linha)
linha = linha + 1
Loop
End If
Dim ff As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
ff = 2
Dim fh As Integer
fh = 2
If Me.ComboBox1 = "LI-L34-MESSEJ" Then ''CONTAGEM DIVISÃO DE MACRO 22
Do While Plan58.Range("ew" & i) <> ""
txtcrediarista.AddItem Plan58.Range("ew" & i)
i = i + 1
Loop
Do While Plan58.Range("ff" & ff) <> ""
txtanalistacredito.AddItem Plan58.Range("ff" & ff)
ff = ff + 1
Loop
Do While Plan58.Range("fh" & fh) <> ""
txtjustificativaanalista.AddItem Plan58.Range("fh" & fh)
fh = fh + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan9.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan9.Range("a" & linha))
Lista.SubItems(1) = Format(Plan9.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan9.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan9.Range("d" & linha)
Lista.SubItems(4) = Plan9.Range("e" & linha)
Lista.SubItems(5) = Plan9.Range("f" & linha)
Lista.SubItems(6) = Plan9.Range("g" & linha)
Lista.SubItems(7) = Plan9.Range("h" & linha)
Lista.SubItems(8) = Plan9.Range("i" & linha)
Lista.SubItems(9) = Plan9.Range("j" & linha)
Lista.SubItems(10) = Plan9.Range("k" & linha)
Lista.SubItems(11) = Plan9.Range("l" & linha)
linha = linha + 1
Loop
End If
Dim fm As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
fm = 2
Dim fo As Integer
fo = 2
If Me.ComboBox1 = "LI-L35-S.POMP" Then ''CONTAGEM DIVISÃO DE MACRO 23
Do While Plan58.Range("fk" & i) <> ""
txtcrediarista.AddItem Plan58.Range("fk" & i)
i = i + 1
Loop
Do While Plan58.Range("fm" & fm) <> ""
txtanalistacredito.AddItem Plan58.Range("fm" & fm)
fm = fm + 1
Loop
Do While Plan58.Range("fo" & fo) <> ""
txtjustificativaanalista.AddItem Plan58.Range("fo" & fo)
fo = fo + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan38.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan38.Range("a" & linha))
Lista.SubItems(1) = Format(Plan38.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan38.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan38.Range("d" & linha)
Lista.SubItems(4) = Plan38.Range("e" & linha)
Lista.SubItems(5) = Plan38.Range("f" & linha)
Lista.SubItems(6) = Plan38.Range("g" & linha)
Lista.SubItems(7) = Plan38.Range("h" & linha)
Lista.SubItems(8) = Plan38.Range("i" & linha)
Lista.SubItems(9) = Plan38.Range("j" & linha)
Lista.SubItems(10) = Plan38.Range("k" & linha)
Lista.SubItems(11) = Plan38.Range("l" & linha)
linha = linha + 1
Loop
End If
Dim ft As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
ft = 2
Dim fv As Integer
fv = 2
If Me.ComboBox1 = "LI-L36-JUAZEI" Then ''CONTAGEM DIVISÃO DE MACRO 24
Do While Plan58.Range("fr" & i) <> ""
txtcrediarista.AddItem Plan58.Range("fr" & i)
i = i + 1
Loop
Do While Plan58.Range("ft" & ft) <> ""
txtanalistacredito.AddItem Plan58.Range("ft" & ft)
ft = ft + 1
Loop
Do While Plan58.Range("fv" & fv) <> ""
txtjustificativaanalista.AddItem Plan58.Range("fv" & fv)
fv = fv + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan39.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan39.Range("a" & linha))
Lista.SubItems(1) = Format(Plan39.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan39.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan39.Range("d" & linha)
Lista.SubItems(4) = Plan39.Range("e" & linha)
Lista.SubItems(5) = Plan39.Range("f" & linha)
Lista.SubItems(6) = Plan39.Range("g" & linha)
Lista.SubItems(7) = Plan39.Range("h" & linha)
Lista.SubItems(8) = Plan39.Range("i" & linha)
Lista.SubItems(9) = Plan39.Range("j" & linha)
Lista.SubItems(10) = Plan39.Range("k" & linha)
Lista.SubItems(11) = Plan39.Range("l" & linha)
linha = linha + 1
Loop
End If
Dim ga As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
ga = 2
Dim gc As Integer
gc = 2
If Me.ComboBox1 = "LI-L37-TERESI" Then ''CONTAGEM DIVISÃO DE MACRO 25
Do While Plan58.Range("fy" & i) <> ""
txtcrediarista.AddItem Plan58.Range("fy" & i)
i = i + 1
Loop
Do While Plan58.Range("ga" & ga) <> ""
txtanalistacredito.AddItem Plan58.Range("ga" & ga)
ga = ga + 1
Loop
Do While Plan58.Range("gc" & gc) <> ""
txtjustificativaanalista.AddItem Plan58.Range("gc" & gc)
gc = gc + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan10.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan10.Range("a" & linha))
Lista.SubItems(1) = Format(Plan10.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan10.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan10.Range("d" & linha)
Lista.SubItems(4) = Plan10.Range("e" & linha)
Lista.SubItems(5) = Plan10.Range("f" & linha)
Lista.SubItems(6) = Plan10.Range("g" & linha)
Lista.SubItems(7) = Plan10.Range("h" & linha)
Lista.SubItems(8) = Plan10.Range("i" & linha)
Lista.SubItems(9) = Plan10.Range("j" & linha)
Lista.SubItems(10) = Plan10.Range("k" & linha)
Lista.SubItems(11) = Plan10.Range("l" & linha)
linha = linha + 1
Loop
End If
Dim gh As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
gh = 2
Dim gj As Integer
gj = 2
If Me.ComboBox1 = "LI-L39-G.SAMP" Then ''CONTAGEM DIVISÃO DE MACRO 26
Do While Plan58.Range("gf" & i) <> ""
txtcrediarista.AddItem Plan58.Range("gf" & i)
i = i + 1
Loop
Do While Plan58.Range("gh" & gh) <> ""
txtanalistacredito.AddItem Plan58.Range("gh" & gh)
gh = gh + 1
Loop
Do While Plan58.Range("gj" & gj) <> ""
txtjustificativaanalista.AddItem Plan58.Range("gj" & gj)
gj = gj + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan40.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan40.Range("a" & linha))
Lista.SubItems(1) = Format(Plan40.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan40.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan40.Range("d" & linha)
Lista.SubItems(4) = Plan40.Range("e" & linha)
Lista.SubItems(5) = Plan40.Range("f" & linha)
Lista.SubItems(6) = Plan40.Range("g" & linha)
Lista.SubItems(7) = Plan40.Range("h" & linha)
Lista.SubItems(8) = Plan40.Range("i" & linha)
Lista.SubItems(9) = Plan40.Range("j" & linha)
Lista.SubItems(10) = Plan40.Range("k" & linha)
Lista.SubItems(11) = Plan40.Range("l" & linha)
linha = linha + 1
Loop
End If
Dim go As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
go = 2
Dim gq As Integer
gq = 2
If Me.ComboBox1 = "LI-L41-N.MARABA" Then ''CONTAGEM DIVISÃO DE MACRO 27
Do While Plan58.Range("gm" & i) <> ""
txtcrediarista.AddItem Plan58.Range("gm" & i)
i = i + 1
Loop
Do While Plan58.Range("go" & go) <> ""
txtanalistacredito.AddItem Plan58.Range("go" & go)
go = go + 1
Loop
Do While Plan58.Range("gq" & gq) <> ""
txtjustificativaanalista.AddItem Plan58.Range("gq" & gq)
gq = gq + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan41.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan41.Range("a" & linha))
Lista.SubItems(1) = Format(Plan41.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan41.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan41.Range("d" & linha)
Lista.SubItems(4) = Plan41.Range("e" & linha)
Lista.SubItems(5) = Plan41.Range("f" & linha)
Lista.SubItems(6) = Plan41.Range("g" & linha)
Lista.SubItems(7) = Plan41.Range("h" & linha)
Lista.SubItems(8) = Plan41.Range("i" & linha)
Lista.SubItems(9) = Plan41.Range("j" & linha)
Lista.SubItems(10) = Plan41.Range("k" & linha)
Lista.SubItems(11) = Plan41.Range("l" & linha)
linha = linha + 1
Loop
End If
Dim gv As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
gv = 2
Dim gx As Integer
gx = 2
If Me.ComboBox1 = "LI-L42-ANANIN" Then ''CONTAGEM DIVISÃO DE MACRO 28
Do While Plan58.Range("gt" & i) <> ""
txtcrediarista.AddItem Plan58.Range("gt" & i)
i = i + 1
Loop
Do While Plan58.Range("gv" & gv) <> ""
txtanalistacredito.AddItem Plan58.Range("gv" & gv)
gv = gv + 1
Loop
Do While Plan58.Range("gx" & gx) <> ""
txtjustificativaanalista.AddItem Plan58.Range("gx" & gx)
gx = gx + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan42.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan42.Range("a" & linha))
Lista.SubItems(1) = Format(Plan42.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan42.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan42.Range("d" & linha)
Lista.SubItems(4) = Plan42.Range("e" & linha)
Lista.SubItems(5) = Plan42.Range("f" & linha)
Lista.SubItems(6) = Plan42.Range("g" & linha)
Lista.SubItems(7) = Plan42.Range("h" & linha)
Lista.SubItems(8) = Plan42.Range("i" & linha)
Lista.SubItems(9) = Plan42.Range("j" & linha)
Lista.SubItems(10) = Plan42.Range("k" & linha)
Lista.SubItems(11) = Plan42.Range("l" & linha)
linha = linha + 1
Loop
End If
Dim hc As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
hc = 2
Dim he As Integer
he = 2
If Me.ComboBox1 = "LI-L46-PALMAS" Then ''CONTAGEM DIVISÃO DE MACRO 29
Do While Plan58.Range("ha" & i) <> ""
txtcrediarista.AddItem Plan58.Range("ha" & i)
i = i + 1
Loop
Do While Plan58.Range("hc" & hc) <> ""
txtanalistacredito.AddItem Plan58.Range("hc" & hc)
hc = hc + 1
Loop
Do While Plan58.Range("he" & he) <> ""
txtjustificativaanalista.AddItem Plan58.Range("he" & he)
he = he + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan11.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan11.Range("a" & linha))
Lista.SubItems(1) = Format(Plan11.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan11.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan11.Range("d" & linha)
Lista.SubItems(4) = Plan11.Range("e" & linha)
Lista.SubItems(5) = Plan11.Range("f" & linha)
Lista.SubItems(6) = Plan11.Range("g" & linha)
Lista.SubItems(7) = Plan11.Range("h" & linha)
Lista.SubItems(8) = Plan11.Range("i" & linha)
Lista.SubItems(9) = Plan11.Range("j" & linha)
Lista.SubItems(10) = Plan11.Range("k" & linha)
Lista.SubItems(11) = Plan11.Range("l" & linha)
linha = linha + 1
Loop
End If
Dim hj As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
hj = 2
Dim hl As Integer
hl = 2
If Me.ComboBox1 = "LI-L48-JPAULO" Then ''CONTAGEM DIVISÃO DE MACRO 30
Do While Plan58.Range("hh" & i) <> ""
txtcrediarista.AddItem Plan58.Range("hh" & i)
i = i + 1
Loop
Do While Plan58.Range("hj" & hj) <> ""
txtanalistacredito.AddItem Plan58.Range("hj" & hj)
hj = hj + 1
Loop
Do While Plan58.Range("hl" & hl) <> ""
txtjustificativaanalista.AddItem Plan58.Range("hl" & hl)
hl = hl + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan43.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan43.Range("a" & linha))
Lista.SubItems(1) = Format(Plan43.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan43.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan43.Range("d" & linha)
Lista.SubItems(4) = Plan43.Range("e" & linha)
Lista.SubItems(5) = Plan43.Range("f" & linha)
Lista.SubItems(6) = Plan43.Range("g" & linha)
Lista.SubItems(7) = Plan43.Range("h" & linha)
Lista.SubItems(8) = Plan43.Range("i" & linha)
Lista.SubItems(9) = Plan43.Range("j" & linha)
Lista.SubItems(10) = Plan43.Range("k" & linha)
Lista.SubItems(11) = Plan43.Range("l" & linha)
linha = linha + 1
Loop
End If
Dim hq As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
hq = 2
Dim hs As Integer
hs = 2
If Me.ComboBox1 = "LI-L49-S.INES" Then ''CONTAGEM DIVISÃO DE MACRO 31
Do While Plan58.Range("ho" & i) <> ""
txtcrediarista.AddItem Plan58.Range("ho" & i)
i = i + 1
Loop
Do While Plan58.Range("hq" & hq) <> ""
txtanalistacredito.AddItem Plan58.Range("hq" & hq)
hq = hq + 1
Loop
Do While Plan58.Range("hs" & hs) <> ""
txtjustificativaanalista.AddItem Plan58.Range("hs" & hs)
hs = hs + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan44.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan44.Range("a" & linha))
Lista.SubItems(1) = Format(Plan44.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan44.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan44.Range("d" & linha)
Lista.SubItems(4) = Plan44.Range("e" & linha)
Lista.SubItems(5) = Plan44.Range("f" & linha)
Lista.SubItems(6) = Plan44.Range("g" & linha)
Lista.SubItems(7) = Plan44.Range("h" & linha)
Lista.SubItems(8) = Plan44.Range("i" & linha)
Lista.SubItems(9) = Plan44.Range("j" & linha)
Lista.SubItems(10) = Plan44.Range("k" & linha)
Lista.SubItems(11) = Plan44.Range("l" & linha)
linha = linha + 1
Loop
End If
Dim hx As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
hx = 2
Dim hz As Integer
hz = 2
If Me.ComboBox1 = "LI-L51-SOBRAL" Then ''CONTAGEM DIVISÃO DE MACRO 32
Do While Plan58.Range("hv" & i) <> ""
txtcrediarista.AddItem Plan58.Range("hv" & i)
i = i + 1
Loop
Do While Plan58.Range("hx" & hx) <> ""
txtanalistacredito.AddItem Plan58.Range("hx" & hx)
hx = hx + 1
Loop
Do While Plan58.Range("hz" & hz) <> ""
txtjustificativaanalista.AddItem Plan58.Range("hz" & hz)
hz = hz + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan45.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan45.Range("a" & linha))
Lista.SubItems(1) = Format(Plan45.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan45.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan45.Range("d" & linha)
Lista.SubItems(4) = Plan45.Range("e" & linha)
Lista.SubItems(5) = Plan45.Range("f" & linha)
Lista.SubItems(6) = Plan45.Range("g" & linha)
Lista.SubItems(7) = Plan45.Range("h" & linha)
Lista.SubItems(8) = Plan45.Range("i" & linha)
Lista.SubItems(9) = Plan45.Range("j" & linha)
Lista.SubItems(10) = Plan45.Range("k" & linha)
Lista.SubItems(11) = Plan45.Range("l" & linha)
linha = linha + 1
Loop
End If
Dim ie As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
ie = 2
Dim ig As Integer
ig = 2
If Me.ComboBox1 = "LI-L52-REDENC" Then ''CONTAGEM DIVISÃO DE MACRO 33
Do While Plan58.Range("ic" & i) <> ""
txtcrediarista.AddItem Plan58.Range("ic" & i)
i = i + 1
Loop
Do While Plan58.Range("ie" & ie) <> ""
txtanalistacredito.AddItem Plan58.Range("ie" & ie)
ie = ie + 1
Loop
Do While Plan58.Range("ig" & ig) <> ""
txtjustificativaanalista.AddItem Plan58.Range("ig" & ig)
ig = ig + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan46.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan46.Range("a" & linha))
Lista.SubItems(1) = Format(Plan46.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan46.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan46.Range("d" & linha)
Lista.SubItems(4) = Plan46.Range("e" & linha)
Lista.SubItems(5) = Plan46.Range("f" & linha)
Lista.SubItems(6) = Plan46.Range("g" & linha)
Lista.SubItems(7) = Plan46.Range("h" & linha)
Lista.SubItems(8) = Plan46.Range("i" & linha)
Lista.SubItems(9) = Plan46.Range("j" & linha)
Lista.SubItems(10) = Plan46.Range("k" & linha)
Lista.SubItems(11) = Plan46.Range("l" & linha)
linha = linha + 1
Loop
End If
Dim il As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
il = 2
Dim io As Integer
io = 2
If Me.ComboBox1 = "LI-L53-PARAUA" Then ''CONTAGEM DIVISÃO DE MACRO 34
Do While Plan58.Range("ij" & i) <> ""
txtcrediarista.AddItem Plan58.Range("ij" & i)
i = i + 1
Loop
Do While Plan58.Range("il" & il) <> ""
txtanalistacredito.AddItem Plan58.Range("il" & il)
il = il + 1
Loop
Do While Plan58.Range("io" & io) <> ""
txtjustificativaanalista.AddItem Plan58.Range("io" & io)
io = io + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan12.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan12.Range("a" & linha))
Lista.SubItems(1) = Format(Plan12.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan12.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan12.Range("d" & linha)
Lista.SubItems(4) = Plan12.Range("e" & linha)
Lista.SubItems(5) = Plan12.Range("f" & linha)
Lista.SubItems(6) = Plan12.Range("g" & linha)
Lista.SubItems(7) = Plan12.Range("h" & linha)
Lista.SubItems(8) = Plan12.Range("i" & linha)
Lista.SubItems(9) = Plan12.Range("j" & linha)
Lista.SubItems(10) = Plan12.Range("k" & linha)
Lista.SubItems(11) = Plan12.Range("l" & linha)
linha = linha + 1
Loop
End If
'Dim is As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
'iu = 2
Dim iu As Integer
iu = 2
If Me.ComboBox1 = "LI-L56-ESTREI" Then ''CONTAGEM DIVISÃO DE MACRO 35
Do While Plan58.Range("iq" & i) <> ""
txtcrediarista.AddItem Plan58.Range("iq" & i)
i = i + 1
Loop
Do While Plan58.Range("iu" & iu) <> ""
txtanalistacredito.AddItem Plan58.Range("iu" & iu)
iu = iu + 1
Loop
Do While Plan58.Range("iu" & iu) <> ""
txtjustificativaanalista.AddItem Plan58.Range("iu" & iu)
iu = iu + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan47.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan47.Range("a" & linha))
Lista.SubItems(1) = Format(Plan47.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan47.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan47.Range("d" & linha)
Lista.SubItems(4) = Plan47.Range("e" & linha)
Lista.SubItems(5) = Plan47.Range("f" & linha)
Lista.SubItems(6) = Plan47.Range("g" & linha)
Lista.SubItems(7) = Plan47.Range("h" & linha)
Lista.SubItems(8) = Plan47.Range("i" & linha)
Lista.SubItems(9) = Plan47.Range("j" & linha)
Lista.SubItems(10) = Plan47.Range("k" & linha)
Lista.SubItems(11) = Plan47.Range("l" & linha)
linha = linha + 1
Loop
End If
Dim iz As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
iz = 2
Dim jb As Integer
jb = 2
If Me.ComboBox1 = "LI-L57-CIDOPE" Then ''CONTAGEM DIVISÃO DE MACRO 36
Do While Plan58.Range("ix" & i) <> ""
txtcrediarista.AddItem Plan58.Range("ix" & i)
i = i + 1
Loop
Do While Plan58.Range("iz" & iz) <> ""
txtanalistacredito.AddItem Plan58.Range("iz" & iz)
iz = iz + 1
Loop
Do While Plan58.Range("jb" & jb) <> ""
txtjustificativaanalista.AddItem Plan58.Range("jb" & jb)
jb = jb + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan48.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan48.Range("a" & linha))
Lista.SubItems(1) = Format(Plan48.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan48.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan48.Range("d" & linha)
Lista.SubItems(4) = Plan48.Range("e" & linha)
Lista.SubItems(5) = Plan48.Range("f" & linha)
Lista.SubItems(6) = Plan48.Range("g" & linha)
Lista.SubItems(7) = Plan48.Range("h" & linha)
Lista.SubItems(8) = Plan48.Range("i" & linha)
Lista.SubItems(9) = Plan48.Range("j" & linha)
Lista.SubItems(10) = Plan48.Range("k" & linha)
Lista.SubItems(11) = Plan48.Range("l" & linha)
linha = linha + 1
Loop
End If
Dim jg As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
jg = 2
Dim ji As Integer
ji = 2
If Me.ComboBox1 = "LI-L58-PEDREI" Then ''CONTAGEM DIVISÃO DE MACRO 37
Do While Plan58.Range("je" & i) <> ""
txtcrediarista.AddItem Plan58.Range("je" & i)
i = i + 1
Loop
Do While Plan58.Range("jg" & jg) <> ""
txtanalistacredito.AddItem Plan58.Range("jg" & jg)
jg = jg + 1
Loop
Do While Plan58.Range("ji" & ji) <> ""
txtjustificativaanalista.AddItem Plan58.Range("ji" & ji)
ji = ji + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan13.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan13.Range("a" & linha))
Lista.SubItems(1) = Format(Plan13.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan13.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan13.Range("d" & linha)
Lista.SubItems(4) = Plan13.Range("e" & linha)
Lista.SubItems(5) = Plan13.Range("f" & linha)
Lista.SubItems(6) = Plan13.Range("g" & linha)
Lista.SubItems(7) = Plan13.Range("h" & linha)
Lista.SubItems(8) = Plan13.Range("i" & linha)
Lista.SubItems(9) = Plan13.Range("j" & linha)
Lista.SubItems(10) = Plan13.Range("k" & linha)
Lista.SubItems(11) = Plan13.Range("l" & linha)
linha = linha + 1
Loop
End If
Dim jn As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
jn = 2
Dim jp As Integer
jp = 2
If Me.ComboBox1 = "LI-L59-MAIOBA" Then ''CONTAGEM DIVISÃO DE MACRO 38
Do While Plan58.Range("jl" & i) <> ""
txtcrediarista.AddItem Plan58.Range("jl" & i)
i = i + 1
Loop
Do While Plan58.Range("jn" & jn) <> ""
txtanalistacredito.AddItem Plan58.Range("jn" & jn)
jn = jn + 1
Loop
Do While Plan58.Range("jp" & jp) <> ""
txtjustificativaanalista.AddItem Plan58.Range("jp" & jp)
jp = jp + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan14.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan14.Range("a" & linha))
Lista.SubItems(1) = Format(Plan14.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan14.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan14.Range("d" & linha)
Lista.SubItems(4) = Plan14.Range("e" & linha)
Lista.SubItems(5) = Plan14.Range("f" & linha)
Lista.SubItems(6) = Plan14.Range("g" & linha)
Lista.SubItems(7) = Plan14.Range("h" & linha)
Lista.SubItems(8) = Plan14.Range("i" & linha)
Lista.SubItems(9) = Plan14.Range("j" & linha)
Lista.SubItems(10) = Plan14.Range("k" & linha)
Lista.SubItems(11) = Plan14.Range("l" & linha)
linha = linha + 1
Loop
End If
Dim ju As Integer ''INICIO DA DECLARAÇÃO DA VARIAVÉIS PARA BUSCA DE CREDIARISTA...
ju = 2
Dim jw As Integer
jw = 2
If Me.ComboBox1 = "LI-L61-N.IMP" Then ''CONTAGEM DIVISÃO DE MACRO 39
Do While Plan58.Range("js" & i) <> ""
txtcrediarista.AddItem Plan58.Range("js" & i)
i = i + 1
Loop
Do While Plan58.Range("ju" & ju) <> ""
txtanalistacredito.AddItem Plan58.Range("ju" & ju)
ju = ju + 1
Loop
Do While Plan58.Range("jw" & jw) <> ""
txtjustificativaanalista.AddItem Plan58.Range("jw" & jw)
jw = jw + 1
Loop
linha = 2 '' AO SELECINAR A LOJA A LISTVIEW É CARREGADA DE ACORDO COM A LOJA
ListView1.ListItems.Clear
Do While Plan15.Range("b" & linha) <> ""
Set Lista = ListView1.ListItems.Add(, , Plan15.Range("a" & linha))
Lista.SubItems(1) = Format(Plan15.Range("b" & linha), "dd/mm/yyyy")
Lista.SubItems(2) = Format(Plan15.Range("c" & linha), "dd/mm/yyyy")
Lista.SubItems(3) = Plan15.Range("d" & linha)
Lista.SubItems(4) = Plan15.Range("e" & linha)
Lista.SubItems(5) = Plan15.Range("f" & linha)
Lista.SubItems(6) = Plan15.Range("g" & linha)
Lista.SubItems(7) = Plan15.Range("h" & linha)
Lista.SubItems(8) = Plan15.Range("i" & linha)
Lista.SubItems(9) = Plan15.Range("j" & linha)
Lista.SubItems(10) = Plan15.Range("k" & linha)
Lista.SubItems(11) = Plan15.Range("l" & linha)
linha = linha + 1
Loop
End If
E ainda tem a terceira parte.