Results 1 to 1 of 1

Parameters in Macros

Threaded View

  1. #1
    Registered User
    Join Date
    05-28-2015
    Location
    Lakeland, FL
    MS-Off Ver
    Excel 13
    Posts
    66

    Parameters in Macros

    With ActiveSheet.QueryTables.Add(Connection:= _
        "FINDER;C:\Users\Macbook\Documents\Lakeland Flying Tigers\Spring Training\Stub Hub Web Queries\Stubhub35.iqy" _
        , Destination:=Range("$A$1"))
        .Name = "Stubhub35"
        .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
    Sheets.Add After:=ActiveSheet
    
    
    End Sub
    I made this macro to automatically do a web query when it is ran. When the macro is ran it asks for the order number which is listed on a separate sheet. Is there way to code it so it automatically goes down the list and repeats it until it finishes the list?
    Last edited by JBeaucaire; 06-03-2015 at 10:19 PM. Reason: Added missing CODE tags. Please read and follow the Forum Rules, link above in the menu bar. Thanks.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Add 0 if parameters are met
    By Burt_100 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-16-2014, 04:30 PM
  2. Macros with parameters stop working
    By neta in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-09-2009, 07:39 AM
  3. Too Few Parameters
    By JezLisle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-30-2008, 05:11 AM
  4. too few parameters
    By lou sanderson in forum Excel General
    Replies: 1
    Last Post: 12-14-2005, 04:00 PM
  5. [SOLVED] Using Parameters in Macros
    By lj@spu.edu in forum Excel General
    Replies: 1
    Last Post: 04-29-2005, 01:06 PM

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