+ Reply to Thread
Results 1 to 8 of 8

Hyperlink formulas (FedEx and UPS) - one works and the other does not

  1. #1
    Forum Contributor
    Join Date
    03-23-2012
    Location
    Michigan
    MS-Off Ver
    MS365 Excel version 2301 (Build 16026.20238)
    Posts
    101

    Hyperlink formulas (FedEx and UPS) - one works and the other does not

    Hello,

    I've got two hyperlink formulas in a testing module, and one FedEx) is working, while the other (UPS) is not. I've taken the UPS formula apart and concluded it has something to do with the hyperlink 'friendly name', which I absolutely need. It must be that I've got a quotation mark out of place or something of the sort. It's driving me nuts! See below for the working FedEX and a few of my UPS attempts. Any thoughts? Thank you!

    FedEx hyperlink code with TrackingNum variable, works great!
    "=HYPERLINK(""https://www.fedex.com/fedextrack/?trknbr=" & TrackingNum & "&trkqual=12021~" & TrackingNum & "~FDEG""," & TrackingNum & ")"

    UPS hyperlink code with TrackingNum variable, does not work
    "=HYPERLINK(""https://wwwapps.ups.com/WebTracking/processInputRequest?HTMLVersion=5.0&loc=en_US&Requester=UPSHome&tracknum=" & TrackingNum & "&AgreeToTermsAndConditions=yes&track.x=17&track.y=4/trackdetails""," & TrackingNum & ")"

    Straight up with actual UPS Tracking #. Works.
    "=HYPERLINK(""https://wwwapps.ups.com/WebTracking/processInputRequest?HTMLVersion=5.0&loc=en_US&Requester=UPSHome&tracknum=1Z9R44231210320802&AgreeToTermsAndConditions=yes&track.x=17&track.y=4/trackdetails"",""1Z9R44231210320802"")"

    Attempt with hyperlink and concatenate. Does not work.
    "=HYPERLINK(CONCATENATE(""http://wwwapps.ups.com/etracking/tracking.cgi?TypeOfInquiryNumber=T&InquiryNumber1="", & )"

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Hyperlink formulas (FedEx and UPS) - one works and the other does not

    The second one works for me using 123 as TrackingNum. What is the value of TrackingNum when it doesn't work?

    The last one evaluates to

    =HYPERLINK(CONCATENATE("http://wwwapps.ups.com/etracking/tracking.cgi?TypeOfInquiryNumber=T&InquiryNumber1=", & )

    You are missing something. There are two left parentheses but only one right parenthesis. Not sure what you intend so I can't fix it.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    03-23-2012
    Location
    Michigan
    MS-Off Ver
    MS365 Excel version 2301 (Build 16026.20238)
    Posts
    101

    Re: Hyperlink formulas (FedEx and UPS) - one works and the other does not

    Below is the testing module I've put together to get the FedEx and UPS links working. As I mentioned, the FedEx part works just fine, but the UPS part of the
    If statement is throwing a run-time error '1004' Application-defined or object-defined error. The formulas seem to be formatted identically, but I'm obviously
    doing something wrong. I'm hoping someone can see something that I've overlooked.


    Please Login or Register  to view this content.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Hyperlink formulas (FedEx and UPS) - one works and the other does not

    What is the data in column F when you are getting this error? I ran this code on the following list and got no errors:

    5123
    5456
    1789
    11011



    The results are

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    917

    Re: Hyperlink formulas (FedEx and UPS) - one works and the other does not

    Just to add missing cross-post links: LINK and LINK
    Last edited by rollis13; 04-03-2021 at 12:05 PM.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Hyperlink formulas (FedEx and UPS) - one works and the other does not

    phrankndonna, we require that if you post the same question somewhere else, you provide a link. Most other forums have the same rule. Please take the time to review our rules. There aren't many, and they are all important.

    Administrative Note:

    Welcome to the forum.

    It has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here. Thanks to rollis13 for providing the links.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Hyperlink formulas (FedEx and UPS) - one works and the other does not

    Posting now to show the solution.
    And this is why we have this rule. You have posted the solution in two other forums and we are still here working on trying to solve it for you.

  8. #8
    Forum Contributor
    Join Date
    03-23-2012
    Location
    Michigan
    MS-Off Ver
    MS365 Excel version 2301 (Build 16026.20238)
    Posts
    101

    Re: Hyperlink formulas (FedEx and UPS) - one works and the other does not

    Coming back here to post the solution. My son and I came up with a solution, but Rollis13 at VBA Express came up with the more direct and elegant solution. Honestly was just trying to provide the details to different viewers. In the future, I will post the question on one site and the link on the other sites.

    http://www.vbaexpress.com/forum/show...550#post408550

    How do I mark the post as SOLVED?

+ 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. Follow Hyperlink Macro only works in Pause/Break Mode
    By jdutle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-18-2015, 01:05 PM
  2. [SOLVED] Problem with hyperlink macro. Works but has a defect.
    By DenisBrochu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-27-2013, 12:35 PM
  3. Hyperlink from excel table to jpgs and burn a DVD that works on its own
    By exfordy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2013, 05:04 PM
  4. cell doesn't showup - but hyperlink works!
    By ArunT in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-30-2008, 05:45 AM
  5. cell doesn't showup - but hyperlink works!
    By ArunT in forum Excel General
    Replies: 0
    Last Post: 01-29-2008, 02:32 PM
  6. [SOLVED] how do I create a hyperlink that works more than one time
    By mcgrath in forum Excel General
    Replies: 0
    Last Post: 02-13-2006, 11:45 AM
  7. [SOLVED] Hyperlink Code only works when file saved on desktop
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2005, 03: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