Im not sure how i would get around that redirect using that method. . This might work though, needs some cleaning but it should get the job done:
Dim part As String
part = "washer" 'Application.InputBox("County:", "The Anti-Pat Brigade", Type:=2)
Set LOIE = New SHDocVw.InternetExplorer
With LOIE
.navigate ("http://www.lowes.com/Search=" & part & "?storeId=10151&langId=-1&catalogId=10051&N=0&newSearch=true&Ntt=" & part & "") ' Main page
.Visible = 0
Do While .readyState <> 4: DoEvents: Loop
LOIE.ExecWB 17, 0
LOIE.ExecWB 12, 0
LOIE.Quit
With Range("B1").Select
ActiveSheet.PasteSpecial Format:="TEXT", link:=False, DisplayAsIcon:=False
Application.CutCopyMode = False
End With
Range("B:B").SpecialCells(xlBlanks).Delete shift:=xlUp
Range("B:B").SpecialCells(xlBlanks).Delete shift:=xlUp
End With
Extract_Model_Price
Columns(2).ClearContents
Columns(1).SpecialCells(xlBlanks).Delete shift:=xlUp
Columns(1).ColumnWidth = 40
Columns(1).SpecialCells(xlBlanks).Delete shift:=xlUp
End Sub
Public Function Extract_Model_Price()
Dim MyCol As Range
Dim vFIND As Range
Dim vFIRST As Range
On Error Resume Next
MyVal = "#"
Set MyCol = Columns(2) 'Application.InputBox("Now highlight a column for me to search.", Type:=8)
Set vFIND = MyCol.Find(MyVal, MyCol.Cells(1), xlValues, xlPart, xlByRows, xlNext, False)
If Not vFIND Is Nothing Then
Set vFIRST = vFIND
Do
vFIND.Offset(0, -1).Delete shift:=xlToLeft
Set vFIND = MyCol.FindNext
Loop Until vFIND.Address = vFIRST.Address
Else
End If
MyVal2 = "MSRP"
Set MyCol = Columns(2) 'Application.InputBox("Now highlight a column for me to search.", Type:=8)
Set vFIND = MyCol.Find(MyVal2, MyCol.Cells(1), xlValues, xlPart, xlByRows, xlNext, False)
If Not vFIND Is Nothing Then
Set vFIRST = vFIND
Do
vFIND.Offset(0, -1).Delete shift:=xlToLeft
Set vFIND = MyCol.FindNext
Loop Until vFIND.Address = vFIRST.Address
Else
End If
MyVal3 = "$"
Set MyCol = Columns(2) 'Application.InputBox("Now highlight a column for me to search.", Type:=8)
Set vFIND = MyCol.Find(MyVal3, MyCol.Cells(1), xlValues, xlPart, xlByRows, xlNext, False)
If Not vFIND Is Nothing Then
Set vFIRST = vFIND
Do
vFIND.Offset(0, -1).Delete shift:=xlToLeft
Set vFIND = MyCol.FindNext
Loop Until vFIND.Address = vFIRST.Address
Else
End If
Set MyCol = Nothing
Set vFIRST = Nothing
Set vFIND = Nothing
End Function
Bookmarks