+ Reply to Thread
Results 1 to 3 of 3

Edit An HTML Hyperlink Address To Current File Name

  1. #1
    Registered User
    Join Date
    03-09-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2003
    Posts
    19

    Edit An HTML Hyperlink Address To Current File Name

    Have an HTML hyperlink in the body of an excel email. Mr. Leith Ross was kind enough to assist me with the code.

    The hyperlink works great, it directs to the folder in which the file exists.

    If I want the hyperlink to open the file directly, how can I change the URL to get it do to that. The trick is that the filename changes based off a cell value in the worksheet.


    Here's the URL:

    URL = """file:///" & "S:\PROJECTS\Bakery Maint\Jason\CAR's Currently Routing"""

    Here's the file name:

    ext = "S:\PROJECTS\Bakery Maint\Jason\CAR's Currently Routing\"
    wbName = Sheets("Approvals").Range("A5").Value
    ActiveWorkbook.SaveAs Filename:=ext & wbName



    Thanks for any help anyone can provide..
    Last edited by WJO; 03-14-2012 at 04:56 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Edit An HTML Hyperlink Address To Current File Name

    Hello WJO,

    You can do it this way. Note the Chr(34) is the ANSI code for a double quote.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    03-09-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Edit An HTML Hyperlink Address To Current File Name

    Thanks AGAIN

    Feel like I got a years worth of education in the last 2 days from your help...

    Thanks

    Little jealous about your location...San Fran is beautiful..spent a week there and loved it..

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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