Can't click hyperlink in locked cells.

  • Hey guys,


    Does anyone know of a way to make it so that a cell can remain locked but be able to click a hyperlink? I need the cell to remained locked so nobody can alter the hyperlink name and value but I would like users to be able to click it and have it open in their browser.


    Any help is appreciated.


    Thanks,
    Steven V.

  • Re: Can't click hyperlink in locked cells.


    If you mean by the "Hyperlink" formula? Yes... Protect/Lock all cells as before.


    Protect the worksheet and allow the user to select locked and unlocked cells.


    You should still be able to click on hyperlink-ed function cells.


    Ger

    _______________________________________________
    There are 10 types of people in the world. Those that understand Binary and those that dont. :P


    Why are Halloween and Christmas the same? Because Oct 31 = Dec 25... ;)

    _______________________________________________

  • Re: Can't click hyperlink in locked cells.


    Then, no :) You need to change the protection type on the sheet to allow users to select cells.


    (or use a =HYPERLINK function in the cell instead).



    Ger

    _______________________________________________
    There are 10 types of people in the world. Those that understand Binary and those that dont. :P


    Why are Halloween and Christmas the same? Because Oct 31 = Dec 25... ;)

    _______________________________________________

  • Re: Can't click hyperlink in locked cells.


    Try this
    Use the range to unlock the cells which contains hyperlink

    Code
    Sub test()
    Range("A1:A10").Locked = False
    ActiveSheet.Protect "pass"  ''''---->password for sheet
     
    End Sub


    Hope this helps

  • Re: Can't click hyperlink in locked cells.


    Can you tell me why I keep getting the Run-time error '1004': Application-defined or object-defined error with the code below? I can't seem to figure it out


    Code
    tool.Worksheets("TRB Database").Cells(A, "AV").FormulaR1C1 = "=HYPERLINK("" & URLText & "", " & CStr(ThisWorkbook.Worksheets("Design Calculator, Q").Cells(21, "P").Value) & ")"
  • Re: Can't click hyperlink in locked cells.


    can you let me know that the answer provided to you firstly solved your issue?


    the error is due to no cells range .Cells(A, "AV") ---> this is not the proper way


    cells(0,"AV") or someother values inside the bracket


    try something like this easy and works for me every time

    Code
    tool.Worksheets("TRB Database").range("Enter Range here").Formula = "=HYPERLINK("" & URLText & "", " & CStr(ThisWorkbook.Worksheets("Design Calculator, Q").Cells(21, "P").Value) & ")"
  • Re: Can't click hyperlink in locked cells.


    To avoid confusion use CHR(34) more for Double Quotes... Something like this:


    (I had to change your cell locations to get it working really quick)
    Ger

    _______________________________________________
    There are 10 types of people in the world. Those that understand Binary and those that dont. :P


    Why are Halloween and Christmas the same? Because Oct 31 = Dec 25... ;)

    _______________________________________________

  • Re: Can't click hyperlink in locked cells.


    I changed it to range like you said and it is still giving me the save error. Also, the unlocking of the cells didnt work either. But it does work when the "=HYPERLINK" function is in the cells so thats why I am trying it this way. Any other suggestions?

  • Re: Can't click hyperlink in locked cells.


    I got it! With help from both of you, I was able to concoct code for my specific program. Thanks for all you help!!! :D

  • Re: Can't click hyperlink in locked cells.


    :) Thx.... Team effort rules the day :)

    _______________________________________________
    There are 10 types of people in the world. Those that understand Binary and those that dont. :P


    Why are Halloween and Christmas the same? Because Oct 31 = Dec 25... ;)

    _______________________________________________

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!