+ Reply to Thread
Results 1 to 2 of 2

base64 encoding??? in a hyperlink more less..

  1. #1
    Registered User
    Join Date
    12-07-2009
    Location
    Detroit
    MS-Off Ver
    Excel 2003
    Posts
    3

    Question base64 encoding??? in a hyperlink more less..

    Well what I am trying to do now is add cell A2 into a hyperlink, but heres the kicker.... I need cell A2's numerical value to be base64 encoded...

    I.E. track.php?next_controller=stats&next_action=view&next_params=%7B%22user%22%3A%22MTAwMDAwMTY3NjUzMDAz%3D%3D%22%7D
    Cell A2=100000167653003
    Cell A2 in base 64=MTAwMDAwMTY3NjUzMDAz


    Also I am trying to have it open a new window when clicked..
    And have a display name of say "User"

    This is the site I have used to get base 64 encoding..
    http://rumkin.com/tools/compression/base64.php



    I know this is asking a lot, I Posted before about using a cell value in a hyperlink and this forum was invaluable.. So now I call on your great wisdom again... I am not even sure if this can be done...

    Thank you very much in advance

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: base64 encoding??? in a hyperlink more less..

    see: http://stackoverflow.com/questions/1...sing-excel-vba

    Revised to Late Binding approach this becomes:

    Please Login or Register  to view this content.
    So if your string is in A2 you would use

    Please Login or Register  to view this content.
    (obviously remove the = if you wish to embed within another formula - eg ="Apples: "&ENCODEBASE64(A2)&", Pears"

    Does that work for you ?


    EDIT: to add - the above is a UDF - ie VBA code that should be placed in a stand alone Module - thereafter Macros must be enabled
    Last edited by DonkeyOte; 12-11-2009 at 02:12 PM.

+ 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