+ Reply to Thread
Results 1 to 7 of 7

web query

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-11-2013
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    265

    Re: web query

    Maybe:

    Sub Macro1()
    '
    ' Macro1 Macro
    '
    
    '
    
    If Not IsEmpty(Range("N283").Value) Then
    
    
        With ActiveSheet.QueryTables.Add(Connection:="URL;" & Range("N283"), Destination:=Range("$AG$1"))
            .Name = "www.google.com"
            .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
        Else
        End If
    End Sub

  2. #2
    Registered User
    Join Date
    11-01-2014
    Location
    rome
    MS-Off Ver
    excel 2007
    Posts
    5

    Re: web query

    wrong code...the rigth one is in JRidge's post

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 02-01-2013, 04:21 PM
  2. [SOLVED] Loop through list, perform web query and save each query on its own page
    By anrichards22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2012, 07:50 AM
  3. Web Query Help? - Query Picture Title or Alt Text on a webpage?
    By teamtrav in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-23-2012, 06:33 PM
  4. Problem with selecting range with in query table after query refresh
    By shooter in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-31-2012, 11:55 AM
  5. Web Query - Change a word in query to form a new query
    By scottymelloty in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2011, 04:13 AM

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