Results 1 to 2 of 2

Macro advice and help

Threaded View

  1. #1
    Registered User
    Join Date
    05-22-2013
    Location
    warsaw
    MS-Off Ver
    Excel 2010
    Posts
    10

    Macro advice and help

    Dear All,

    I am trying to create a macro which would allow me to look up a name in say cell A1 and then go onto an internet site in IE and use that name as the search item and then pull the email address from the profile page.

    is this at all possible, if so how would i event start...?

    I have managed to create the code below, so far it works but it pastes the whole site. Is there anyway to automate the parameter selection, so for example it would search through all the names in Column A and then just copy and paste a specific part of the page?


    Sub query()
    '
    ' query Macro
    '
    
    '
        With ActiveSheet.QueryTables.Add(Connection:= _
            "URL;http://x.com/ks/research/search/directory?searchString=[""]&referrer=search" _
            , Destination:=Range("$B$2"))
            .Name = Sheet1.Range("A2").Value
            .FieldNames = True
            .RowNumbers = False
            .FillAdjacentFormulas = False
            .PreserveFormatting = False
            .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
    End Sub
    Last edited by JBeaucaire; 07-31-2013 at 05:56 PM. Reason: Merged first two posts to keep REPLY count at zero to encourage viewers.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Very Slow Macro... Any Advice How To Speed It Up, Please?
    By mrodrigues in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-07-2012, 04:37 PM
  2. vba/macro excel to access generic advice
    By masond3 in forum Excel General
    Replies: 0
    Last Post: 07-26-2012, 06:08 PM
  3. New to macro, need advice, thanks
    By azote in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-16-2011, 02:22 PM
  4. Macro Advice
    By lotaguts in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-17-2007, 08:45 AM
  5. [SOLVED] Advice on Creating an Excel Formula or Macro - PLEASE HELP!!!!
    By So Tru Geo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2006, 02:15 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