+ Reply to Thread
Results 1 to 2 of 2

Hyperlinking from a Form Input Based on Directory

  1. #1
    Registered User
    Join Date
    04-08-2015
    Location
    America
    MS-Off Ver
    Office 2013
    Posts
    29

    Hyperlinking from a Form Input Based on Directory

    Hi Excel Users,

    Currently I have a userform that allows users to fill in information and this information, when submitted, is automatically filled in the spreadsheet.
    One of the fields allows a user to search in windows explorer by the use of a browse button for a file. Upon selecting the file it hyperlinks the directory to the text in the cell via:

    Please Login or Register  to view this content.
    this takes the text in the CRBrowseText Box and hyperlinks it for the text in the target cell.
    This issue I want to somehow address is this:

    If a user cannot find the particular file, or a file doesn't exist, the text returned is FALSE, however still hyperlinks the target cell to no directory.

    Is there a way I can implement an if statement or some other method for when nothing (i.e. user didnt browse and leaves textbox blanl) or a FALSE is returned after browsing for a file and can't find it, that it will not execute the above code, but so it just does:

    Please Login or Register  to view this content.
    Thanks so much for any assistance,

    nKife

  2. #2
    Registered User
    Join Date
    04-08-2015
    Location
    America
    MS-Off Ver
    Office 2013
    Posts
    29

    Re: Hyperlinking from a Form Input Based on Directory

    Thanks guys, I solved this using nested if statements as such:

    Please Login or Register  to view this content.
    Cheers,

    nKife

+ 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. Hide/unhide rows based on form input
    By Nicolas Mous in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-17-2014, 10:49 AM
  2. Data Input Form with number of line items based on user input
    By j_gideon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2013, 02:54 PM
  3. [SOLVED] Jump codes based on the input in a user form
    By ishaan198 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-30-2012, 11:25 AM
  4. Looping a data input form based on form option
    By bologne in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 04-17-2011, 03:06 AM
  5. VBA Hyperlinking to user input worksheet
    By kys2000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-06-2011, 08:49 AM
  6. Input form with criterion-based selection list
    By TPFKAS in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-27-2009, 05:05 PM
  7. Web Qery Based On Form Field Input
    By netbrink in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-15-2006, 03:30 PM

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