+ Reply to Thread
Results 1 to 10 of 10

Hyperlink

  1. #1
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2003
    Posts
    22

    Hyperlink

    Please refer to the attached and let me know if its possible to make a VB macro which can read each hyperlink on column A and copy the contents of the webpage that will pop and paste in a new excel sheet up i.e. I want to collect the info in one concise excel sheet


    Kind Regards

    Imtiaz
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Hyperlink

    Example attached below.

    Hello. This macro will copy and format the contents to a new sheet for each column B name up to 31 characters. To test, as is, the code will run just the first 3 from sheet 2.

    Press ALT+F11 to open VBA window
    Right Click your project and press insert new module
    Paste the code below and run the macro CopyWebPage

    Please Login or Register  to view this content.

    When finished testing Change lines near top:


    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.
    as right now it will just process 3 websites. The new change will process every link in Colun A on sheet 2
    Last edited by playaller; 05-15-2014 at 10:58 PM.


    Shelton A.
    If Helpful, Add Reputaion!

  3. #3
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Hyperlink

    I do apologize I realized I uploaded the wrong file format. The macro-enabled file containing the code is attached.

  4. #4
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Hyperlink

    hi

    this is awesome -
    now how would I collate them into one sheet i.e. one website info in column A, next column B etc
    but there is on complication - every row must be the same i.e. if trading name is in row 7 all must be in row 7

  5. #5
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Hyperlink

    Thank you. I have updated the attached file. For the most part the categories will align but some columns will misaligned due to the category Grade having multiple rows and being different for certain people I would probably have to process near 50 to 100 web pages to compare and adjust for alignment but I don't really have free time for that so I hope this get's you close enough.


    By default it's set to process the first 20. If you're satisfied switched the notated lines and all will be processed.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Hyperlink

    hi

    unbelievable

    thanks alot

  7. #7
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Hyperlink

    You're more than welcome. Glad I could help! If satisfied remember to mark the thread as solved.

  8. #8
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Hyperlink

    Hi Shelton

    I am running the macro but after about 300 loops, it gives a run time error
    any idea what could be causing this problem

    Kind Regards

    Imtiaz

  9. #9
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2003
    Posts
    22

    String search

    Hi

    For each column I need to search for string " E-Mail Address: " and copy the email in the row below this string to a new sheet and list it one below the other

    sample file attached

    Please help
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: String search

    You can use the below macro but in the future you will have to start a new thread.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. [SOLVED] Excel 2010 Create a macro to check if cell contains hyperlink then apply hyperlink style
    By chasidar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2013, 04:48 AM
  2. Using Vlookup to pull hyperlink from Master Hyperlink file list.
    By theflyingnimbus in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-02-2013, 01:42 PM
  3. Replies: 1
    Last Post: 02-23-2013, 05:18 AM
  4. Replies: 20
    Last Post: 03-19-2011, 09:13 AM
  5. [SOLVED] Re: Moving rows with Hyperlink doesn't move hyperlink address
    By Jim in forum Excel General
    Replies: 5
    Last Post: 06-22-2006, 07:10 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