+ Reply to Thread
Results 1 to 8 of 8

TextBox Hyperlink Code

  1. #1
    Forum Contributor
    Join Date
    09-29-2014
    Location
    Montreal, Canada
    MS-Off Ver
    2013
    Posts
    222

    TextBox Hyperlink Code

    I have a textbox “txtLink” in my userform which shows all the hyperlinks from a dB. When I click on the link nothing happens

    Is there a property I’m missing to have the link open when I click on it or I need a code?

    Thank you

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: TextBox Hyperlink Code

    The value in a textbox is just text, it's not a hyperlink.

    What exactly are you trying to do and why multiple values/hyperlinks in one textbox?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    09-29-2014
    Location
    Montreal, Canada
    MS-Off Ver
    2013
    Posts
    222

    Re: TextBox Hyperlink Code

    Thanks Norie for the help. I have a table with 4 columns and the headers are “Category, WebAddress, Link, ID). When I click on any link in the table, it takes me to that link.

    I understand that the textbox is just text but I have a similar situation in another workbook where the text is Email and when I click on the email it takes me to my Email program which is what I want

    The code for this was provided by a member on this forum and it is like that
    Please Login or Register  to view this content.
    I think If I could replace in the above code the “mailto” to something appropriate it should work

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: TextBox Hyperlink Code

    Just get rid of "mailto:" & and change txtEmail to the name of the textbox that has the link you want to navigate to.

    For example,
    Please Login or Register  to view this content.
    or perhaps.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    09-29-2014
    Location
    Montreal, Canada
    MS-Off Ver
    2013
    Posts
    222

    Re: TextBox Hyperlink Code

    I get "Syntax error" or "Expected: end of statement" but now you gave me the idea I try different statements to see if it will work

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: TextBox Hyperlink Code

    That code was a bit rough and, unfortunately, untested.

    Try playing about with it but if you don't have any luck attach a sample workbook so we can see what you are working with.

  7. #7
    Forum Contributor
    Join Date
    09-29-2014
    Location
    Montreal, Canada
    MS-Off Ver
    2013
    Posts
    222

    Re: TextBox Hyperlink Code

    Thanks Norie, I will give it a try

  8. #8
    Forum Contributor
    Join Date
    09-29-2014
    Location
    Montreal, Canada
    MS-Off Ver
    2013
    Posts
    222

    Re: TextBox Hyperlink Code

    This code is working here (txtLINK is the name of my textbox)

    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. Open hyperlink from textbox (Help) please
    By lacromo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2015, 12:08 AM
  2. VBA - Macro Code to copy textbox text to another worksheet textbox
    By nitram lowm in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-05-2013, 08:39 AM
  3. [SOLVED] How do I add a hyperlink to a particular cell to a textbox using vba?
    By korrin.anderson@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2006, 06:30 PM
  4. Hyperlink within Textbox(UserForm)
    By Soniya in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-14-2005, 01:20 PM
  5. Hyperlink in a textbox
    By GWI in forum Excel General
    Replies: 1
    Last Post: 02-15-2005, 01:06 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