+ Reply to Thread
Results 1 to 3 of 3

VBA: Search text and extract hyperlink in same cell

  1. #1
    Forum Contributor
    Join Date
    05-01-2013
    Location
    IND
    MS-Off Ver
    Excel 2007
    Posts
    130

    VBA: Search text and extract hyperlink in same cell

    I want to clear all other hyper linked texts or sentences if existed in used range of each sheet except x,y and z.
    Sorry for the post title.

    Sub addtext1()
    Dim ws As Worksheet
    For Each ws In Worksheets If ws.Name <> "x" And ws.Name <> "y" And ws.Name <> "z" Then

    Your CODE

    End If
    End If
    Next ws
    End Sub
    Last edited by sroysroy; 05-26-2013 at 11:47 AM.

  2. #2
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Re: VBA: Search text and extract hyperlink in same cell

    Please Login or Register  to view this content.
    Perhaps it was the Noid who should have avoided me...
    If you are satisfied with my solution click the small star icon on the left. Thanks
    1. Make a copy of your workbook and run the following code on your copy (just in case)
    2. With excel open, press ALT+F11 to open the Visual Basic Editor (VBE). From the "Insert" menu, select "Module".
    3. Paste the code from above into the empty white space. Close the VBE.
    4. From the developer tab, choose "Macros", select the Sub Name, and click "Run".

  3. #3
    Forum Contributor
    Join Date
    05-01-2013
    Location
    IND
    MS-Off Ver
    Excel 2007
    Posts
    130

    Re: VBA: Search text and extract hyperlink in same cell

    Thanks. Worked .

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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