+ Reply to Thread
Results 1 to 3 of 3

Add a *working* hyperlink into existing hyperlink field using vba

  1. #1
    Registered User
    Join Date
    05-24-2013
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    5

    Add a *working* hyperlink into existing hyperlink field using vba

    I have a hyperlink field named [Doc Folder] which I want automatically populated. I've already have the string the hyperlink that I want to assign to [Doc Folder]. However, when I assign it to the field, it only shows as text and is not follow-able. How do I fix this so that the text becomes a real link?


    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,190

    Re: Add a *working* hyperlink into existing hyperlink field using vba

    Paste this code into a module, and it will open ANY file in its native application.

    usage:
    OpenNativeApp "c:\folder\file.pdf",will open it in acrobat
    OpenNativeApp "c:\folder\file.doc", will open the doc in Word.
    OpenNativeApp "c:\folder\", will open the browser, (web sites too)


    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-24-2013
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Add a *working* hyperlink into existing hyperlink field using vba

    I wasn't trying to *open* the link, I was trying to *store* the string as a link. In any case, I've solved my own problem but thanks for the response. Although my code could possibly be cleaned up a bit, it seems to do exactly what I want it to do:

    Please Login or Register  to view this content.
    Last edited by Zandia; 06-14-2016 at 12:10 AM. Reason: corrected the code

+ 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] How to Populate a Field after selecting another field (button or hyperlink)
    By Perk1961 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-09-2015, 01:12 PM
  2. Hyperlink using existing data
    By BigB2212 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-12-2014, 01:16 PM
  3. Turning existing hyperlink into dynamic
    By getafixkwik in forum Excel General
    Replies: 0
    Last Post: 04-28-2014, 02:08 PM
  4. [SOLVED] Auto Hyperlink to existing cell value
    By turist in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-26-2013, 04:55 PM
  5. Want to open new hyperlink in existing IE window and tab
    By flyboy54 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2013, 10:28 AM
  6. Add Hyperlink to existing Code
    By stojko89 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-20-2011, 06:48 AM
  7. Hyperlink to replace existing page?
    By hamspankin1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-12-2010, 10:03 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