+ Reply to Thread
Results 1 to 4 of 4

Userform that inserts hyperlink for a file location

  1. #1
    Registered User
    Join Date
    07-10-2014
    Location
    Florida
    MS-Off Ver
    2007
    Posts
    2

    Userform that inserts hyperlink for a file location

    I have created Browse buttons on my userform that open the file dialogue box, and allow me to select a file location. The file name text gets inserted into a corresponding text box. When the userform is submitted, the information goes to a database and is distribtued on the first empty row. The file names get inserted into cells, and I would like for the file names to act as hyperlinks to that specific file location. When I first created this workbook, I could click on the file location, and the file would open, but it is not doing that any longer. I think if the userform can insert the file location as a hyperlink, it will be more user-friendly. Here is the code I have so far:

    Please Login or Register  to view this content.
    Last edited by lowell.addi; 07-17-2014 at 02:12 PM.

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Userform that inserts hyperlink for a file location

    Welcome to the board!

    Try this.
    Please Login or Register  to view this content.
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    07-10-2014
    Location
    Florida
    MS-Off Ver
    2007
    Posts
    2

    Re: Userform that inserts hyperlink for a file location

    Tinbendr:

    I inserted your code in place of mine, and I am getting a "Run-time error 438: Object doesn't support this property or method". Any suggestions?

  4. #4
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Userform that inserts hyperlink for a file location

    Hi,

    Check the below code and hope this will help you:

    Please Login or Register  to view this content.
    Where
    YourSheetName = Name of the sheet on which you want hyperlink function
    And A1 is the cell where Hyperlink function will be placed.
    And Filepath = Your file path for eg: "D:\abc.txt"

    Regards,
    Paresh J
    Click on "* Add Reputation" as a way to say thanks

+ 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. Excel Hyperlink to location within same file from word within cell
    By dave1983 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-23-2014, 11:38 AM
  2. Excel VBA in a userform that create a hyperlink into a specific cell location
    By mikeflatley01 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-19-2013, 08:04 PM
  3. Copy hyperlink file to another location and give it a new file name
    By karole in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-26-2012, 03:50 PM
  4. Automatic Hyperlink to File Location/Path on Server
    By dforte in forum Excel General
    Replies: 6
    Last Post: 04-15-2011, 02:53 PM
  5. [SOLVED] Hyperlink Locates file regardless of it's location
    By AC in forum Excel General
    Replies: 1
    Last Post: 10-05-2005, 07:05 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