+ Reply to Thread
Results 1 to 3 of 3

Transfering Userform textbox filepath to worksheet as a hyperlink.

  1. #1
    Registered User
    Join Date
    01-15-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    17

    Transfering Userform textbox filepath to worksheet as a hyperlink.

    Hello,

    I have a userform that populates an excel worksheet.

    The user fills in the userform, presses the "submit" button and it sends all the information to a spreadsheet.

    I have now added an option to reference appropriate files (pictures, documents etc.). On the same userform, the user can press a button which opens a file browser window. The user finds their file and presses "OK" and the file path is displayed in a text box that I've placed on the userform.

    When the "submit" button on the userform is pressed, the spreadsheet is populated including the file path bit.

    The above works well. In the database I can see the filepath as text but what I would like to do is have it as a hyperlink to the file itself.

    Therefore, rather than the userform populating the filepath as a piece of text, is it possible to populate it as a link to the document it's referring to?

    This is what I have done to get the filepath into the userform. The command button is called "Find_File" and the associated text box is called "File_Ref":

    Please Login or Register  to view this content.
    To send the userform information to a worksheet database I have used:


    Please Login or Register  to view this content.

    Is there a way to get the last line like?:

    Please Login or Register  to view this content.
    Last edited by SJJ; 02-29-2012 at 05:17 PM. Reason: Question solved

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Transfering Userform textbox filepath to worksheet as a hyperlink.

    SJJ,

    Something like this?
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    01-15-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Transfering Userform textbox filepath to worksheet as a hyperlink.

    Quote Originally Posted by tigeravatar View Post
    SJJ,

    Something like this?
    Please Login or Register  to view this content.
    tigeravatar,

    Brilliant! That's exactly what I was looking for. Thank you very much for the quick response.

+ 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