rodrigo_solares
New Member
- Joined
- Mar 6, 2007
- Messages
- 44
Hello to all,
I've been using this primitive macro to bring some values from website:
This macro is currently looking the website with data from cell C3 of GUS8301 Sheet... I want to be able to do this task for every cell with data in Column "C"...
Any help here would be greatly appreciated!!
I've been using this primitive macro to bring some values from website:
Code:
Sub Tracker()
Sheets.Add
Application.DisplayAlerts = False
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://magpie.boise.itc.hp.com:8080/gip/fileStatus.jsp?transKey=GUS8301D&fileName=" & Right(Range("GUS8301!C3").Value, 16) _
, Destination:=Range("A1"))
.WebTables = "6,12"
.Refresh BackgroundQuery:=False
Range("GUS8301!A3").FormulaR1C1 = _
"=IF(VLOOKUP(""Start run."",Sheet1!C[1],1,FALSE)=""Start run."",OFFSET(Sheet1!C[1],MATCH(""Start Run."",Sheet1!C[1],0)-1,-1,1,1),FALSE)"
Range("GUS8301!A3").Copy
Range("GUS8301!A3").PasteSpecial Paste:=xlPasteValues
Range("GUS8301!B3").FormulaR1C1 = _
"=IF(VLOOKUP(""End run."",Sheet1!C,1,FALSE)=""End Run."",OFFSET(Sheet1!C,MATCH(""End Run."",Sheet1!C,0)-1,-1,1,1),FALSE)"
Range("GUS8301!B3").Copy
Range("GUS8301!B3").PasteSpecial Paste:=xlPasteValues
End With
End Sub
This macro is currently looking the website with data from cell C3 of GUS8301 Sheet... I want to be able to do this task for every cell with data in Column "C"...
Any help here would be greatly appreciated!!