+ Reply to Thread
Results 1 to 2 of 2

web query rusing cell value

  1. #1
    Registered User
    Join Date
    07-07-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    44

    web query rusing cell value

    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.

  2. #2
    Registered User
    Join Date
    07-07-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: web query rusing cell value

    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1