+ Reply to Thread
Results 1 to 1 of 1

Second hyperlink ends in "sessionid", but not when entered directly in search bar

  1. #1
    Registered User
    Join Date
    05-05-2016
    Location
    Holland
    MS-Off Ver
    2016
    Posts
    23

    Second hyperlink ends in "sessionid", but not when entered directly in search bar

    Hi guys,

    I'm building a macro with some dynamic hyperlinks to an online protein database: https://www.phosphosite.org. For example, protein "O43399".
    From another site, http://www.uniprot.org/uniprot/O43399, I've looked at the link address they provide on their site for this protein which is: https://www.phosphosite.org/uniprotAccAction?id=O43399.
    This UniProt link or direct insertion into Google Chrome's address bar gives the appropriate target.

    It does so as well when I click from the macro generated formulae:
    With Worksheets("Overview").Range("J2:J" & lrr)
    .FormulaR1C1 = "=HYPERLINK(""https://www.phosphosite.org/proteinSearchSubmitAction?accessionIds=""&RC[-3],RC[-3])"
    End With


    BUT, it only works one time. Whenever I click on a second hyperlink, while the first one is open, I get redirected to a useless:
    https://www.phosphosite.org/messageA...E0B62236D03072

    I have checked with a "redirection" tool yielding; "redirection: type 200 OK"

    Other hyperlinks do get redirected to the "proteinSearchSubmitAction?accessionIds=" though, such as:
    '.FormulaR1C1 = "=HYPERLINK(""http://www.phosphosite.org/simpleSearchSubmitAction.action?searchStr=""&RC[-3],RC[-3])"
    '.FormulaR1C1 = "=HYPERLINK(""https://www.phosphosite.org/proteinSearchSubmitAction?accessionIds=""&RC[-3],RC[-3])"


    with RC[-3] = O43399

    Again, typing the link address directly in Chrome, or with "CMD> start [+ address]" give me the desired page.

    Anyone who does know how to avoid this "sessionid" thing, a CMD workaround with clickable hyperlinks (please no .BAT files), or another way?


    Thank you already for reading,

    Max138

    Post scriptum: added a severely simplified version with hyperlinks, but it does the trick...or doesn't actually
    Attached Files Attached Files

+ 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. "Error" or "Disallow" Entries If Data Entered in Wrong Cell
    By sage.tx in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-12-2017, 12:20 PM
  2. Formula Adjust. Need =IF"" data to remain once entered when =IF"" changes.
    By EDDYJAMES in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-02-2015, 03:44 PM
  3. How to use InStr function to search for a text that starts with "CTF" and ends with "."?
    By yoursamrit2000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-27-2014, 06:52 PM
  4. Replies: 0
    Last Post: 03-21-2014, 09:58 AM
  5. 7 nested IF statements with a SEARCH added IF(ISNUMBER(SEARCH({"INSUR","AP REFUND"}
    By michaelproctor001 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 12-10-2013, 02:13 PM
  6. [SOLVED] Formula Needed to fill multiple cells with "No" when the word "No" is entered into a cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-09-2013, 05:36 PM
  7. Replies: 10
    Last Post: 06-04-2012, 09:38 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