Click here to Skip to main content
16,005,066 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralSMS Service in VB.Net Pin
Member 28202626-Jul-05 0:03
Member 28202626-Jul-05 0:03 
GeneralRe: SMS Service in VB.Net Pin
Dave Kreskowiak26-Jul-05 4:40
mveDave Kreskowiak26-Jul-05 4:40 
Generalabout broswer and session Pin
wzfztw25-Jul-05 23:49
wzfztw25-Jul-05 23:49 
Generalnavnohistory Pin
sal2125-Jul-05 23:48
sal2125-Jul-05 23:48 
GeneralRe: navnohistory Pin
Dave Kreskowiak26-Jul-05 4:39
mveDave Kreskowiak26-Jul-05 4:39 
GeneralRe: navnohistory Pin
sal2126-Jul-05 4:43
sal2126-Jul-05 4:43 
GeneralRe: navnohistory Pin
Dave Kreskowiak26-Jul-05 5:25
mveDave Kreskowiak26-Jul-05 5:25 
GeneralRe: navnohistory Pin
Anonymous26-Jul-05 7:38
Anonymous26-Jul-05 7:38 
This is my new code, is correct?. Because after the cursor go in:

.refresh

the macro go into ie.quit and and the code!?

Sub RICERCA_ABI_CAB()

Dim ie As Object
Dim lngRow As Long
Dim lngMaxRow As Long
Dim wksList As Worksheet

Set wksList = ActiveWorkbook.Worksheets("ABICAB")
Set ie = CreateObject("InternetExplorer.Application")

On Error GoTo errHandler
lngMaxRow = Range("A65536").End(xlUp).Row
With ie
.Visible = True
For lngRow = 2 To lngMaxRow
.Refresh
.navigate "http://www.bancaroma.it/abicab/index.asp", 2
Do While .busy
DoEvents
Loop
Do While .ReadyState <> 4
DoEvents
Loop

If wksList.Cells(lngRow, 3).Value = "" Then

With .document.Forms(0)
'Abi
.ABI.Value = Range("A" & lngRow)
'Cab
.CAB.Value = Range("B" & lngRow)
.submit

Application.StatusBar = "Processing row " & lngRow & " of " & wksList.Range("A1").CurrentRegion.Rows.Count

End With
Do While Not CBool(InStrB(1, .document.URL, "?Search "))
DoEvents
Loop
Do While .busy
DoEvents
Loop
Do While .ReadyState <> 4
DoEvents
Loop
On Error Resume Next
'CONSIDERARE PRIMA CELLA COME POSISZIONE "ZERO"
Range("C" & lngRow) = UCase(.document.all.tags("table").Item(1).Rows(0).Cells(3).innerText)
Range("D" & lngRow) = UCase(.document.all.tags("table").Item(1).Rows(1).Cells(3).innerText)
Range("E" & lngRow) = UCase(.document.all.tags("table").Item(1).Rows(2).Cells(1).innerText)
Range("F" & lngRow) = UCase(.document.all.tags("table").Item(1).Rows(3).Cells(1).innerText)
Range("G" & lngRow) = Format(UCase(.document.all.tags("table").Item(1).Rows(4).Cells(1).innerText), "#00000")

On Error GoTo errHandler
End If
Next lngRow
End With

errHandler:
ie.Quit
Set ie = Nothing
Exit Sub

ActiveWorkbook.Save

End Sub
GeneralRe: navnohistory Pin
sal2126-Jul-05 7:41
sal2126-Jul-05 7:41 
GeneralRe: navnohistory Pin
Dave Kreskowiak26-Jul-05 10:09
mveDave Kreskowiak26-Jul-05 10:09 
GeneralRe: navnohistory Pin
sal2126-Jul-05 22:43
sal2126-Jul-05 22:43 
GeneralRe: navnohistory Pin
Dave Kreskowiak27-Jul-05 1:19
mveDave Kreskowiak27-Jul-05 1:19 
GeneralPageSetupDialog Control Pin
rushing25-Jul-05 22:59
rushing25-Jul-05 22:59 
GeneralRe: PageSetupDialog Control Pin
Dave Kreskowiak26-Jul-05 4:35
mveDave Kreskowiak26-Jul-05 4:35 
GeneralProgrammatically Converting Paradox to Access Tables Pin
JJRW25-Jul-05 22:57
JJRW25-Jul-05 22:57 
GeneralRe: Programmatically Converting Paradox to Access Tables Pin
Dave Kreskowiak26-Jul-05 4:31
mveDave Kreskowiak26-Jul-05 4:31 
GeneralRTL Enabling Problem Pin
justzain25-Jul-05 22:39
justzain25-Jul-05 22:39 
GeneralValues from one form into another form Pin
directred25-Jul-05 22:16
directred25-Jul-05 22:16 
GeneralRe: Values from one form into another form Pin
Anonymous26-Jul-05 3:58
Anonymous26-Jul-05 3:58 
GeneralRe: Values from one form into another form Pin
Dave Kreskowiak26-Jul-05 4:27
mveDave Kreskowiak26-Jul-05 4:27 
Generalpuuting in system menu Pin
Anonymous25-Jul-05 21:19
Anonymous25-Jul-05 21:19 
GeneralRe: puuting in system menu Pin
Dave Kreskowiak26-Jul-05 4:25
mveDave Kreskowiak26-Jul-05 4:25 
Generaldisallowing to delete folder programmatically Pin
Anonymous25-Jul-05 21:16
Anonymous25-Jul-05 21:16 
GeneralRe: disallowing to delete folder programmatically Pin
Dave Kreskowiak26-Jul-05 4:11
mveDave Kreskowiak26-Jul-05 4:11 
GeneralDisallowing to uninstall Pin
Anonymous25-Jul-05 21:12
Anonymous25-Jul-05 21:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.