This is what I have so far, so close but it only returns a blank sheet not the data
where Cells(row,2).Value = the URL any ideas??!?!? let me know if you have any questions!
Please Login or Register to view this content.
This is what I have so far, so close but it only returns a blank sheet not the data
where Cells(row,2).Value = the URL any ideas??!?!? let me know if you have any questions!
Please Login or Register to view this content.
Last edited by rs585832; 06-13-2012 at 04:02 PM.
Solved for people with similar problems!
Dim row As Integer
row = 2
Do Until IsEmpty(Cells(row, 1).Value)
ActiveWorkbook.Worksheets.Add
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://star.finra.org/STAR/Main.aspx?source=starapp&MatterID=" & Sheets("Gene > 300").Cells(row, 1).Value & "&action=mattersearch" _
, Destination:=Range("$A$1"))
.Name = "Main.aspx?source=starapp&MatterID=" & Sheets("Gene > 300").Cells(row, 1).Value & "&action=mattersearch"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlEntirePage
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks