+ Reply to Thread
Results 1 to 21 of 21

Using HyperLink Function in a Dropdown List does not give the Hyperlink functionality

  1. #1
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Using HyperLink Function in a Dropdown List does not give the Hyperlink functionality

    Using HyperLink Function in a Dropdown List does not give the Hyperlink functionality

    I am using a DropDown which contains a list of Account nos in the Col B
    from Cell B2 till B8 as shown..

    Row 1 Col B
    Row 2 <- Blank
    Row 3 Acct1
    Row 4 Acct2
    Row 5 Acct3
    Row 6 Acct4
    Row 7 Acct5
    Row 8 Acct6

    Now this List is used in a defines Name as AcctNos..
    Please Login or Register  to view this content.
    In the Cloumn J the same data is stored simply..

    Now, I want to get the Hyperlink functionality in the Dropdown a the MainFile as these values are Individual Acct nos and are Individual Sheets

    So how DO i get this working..In the dropdown nothing works..A VBA solution with explanation would also be welcome if this is impossible with Formulas..

    Warm Regards
    e4excel
    Last edited by e4excel; 03-19-2011 at 09:15 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    Hello,
    What's in A1 and J3.
    Could you supply a simple sample workbook showing what is going on?

  3. #3
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    Quote Originally Posted by davesexcel View Post
    Hello,
    What's in A1 and J3.
    Could you supply a simple sample workbook showing what is going on?
    Dear Dave,

    Firstly thanks for the prompt reply..

    Per your query, In the cell A1 theres nothing as such its just that I want the Hyperlink to take me to the particular sheets cell A1 address.

    J3 contains the actual nos as values and in the cell B3 it is Hyperlinked using the formula.

    However, I want this list to be usedin the Sheet "Ledger-View" which has a Dropdown in the cell C3 to select the different accounts...SO I want to get the Hyperlink functionality fron this Sheet i.e. "Ledger-View" as the Acct Nos are different Sheet Names with individual information for the particular account.

    Please find the attachement for better understanding..

    Warm Regards
    e4excel
    Attached Files Attached Files

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    Try this placed in the worksheet module.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-15-2011
    Location
    Indonesia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Smile Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    Quote Originally Posted by davesexcel View Post
    Please Login or Register  to view this content.

    so, it mean function in LIST sheet (B column) is useless,

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    Quote Originally Posted by TghFox View Post
    so, it mean function in LIST sheet (B column) is useless,
    I went straight to VBA didn't even attempt to figure out a formula solution, assumed it would not work in a dropdown.
    Last edited by davesexcel; 03-16-2011 at 06:31 AM.

  7. #7
    Registered User
    Join Date
    03-09-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    I pasted the code in the given spreadsheet ( VBA)

    and made changed with dropdown by selecting ACCT1, 2, and 3 but it didnt worked :-(

    I tried and searched on web but havent got luck... if someone can help us that would be great

  8. #8
    Registered User
    Join Date
    03-15-2011
    Location
    Indonesia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    try this example, I modify a little may help you
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    Dear Dave, TghFox..

    Thanks a lot for your help it does implement the Hyperlink Functionality however I was not expecting to immediately be taken to the AcctX Sheet , I was actually looking out for the List to be as usual but when I click in on the contents of the List in the Cell C3 then it takes me to the desired Sheet..

    Now In this case its not leaving me a choice so can that be altered a little bit as that would give me a better choice of using the HyperLink or not..?

    Please Login or Register  to view this content.
    Warm Regards
    e4excel
    Last edited by e4excel; 03-16-2011 at 10:13 AM.

  10. #10
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    That can be reduced to:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.



  11. #11
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    In that case this will do:

    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    Dear Snb,

    Can you please post a WorkBook so that there remains no stone unturned as I am no good in VBA and do not want to make any mistakes..

    I mean please post it with your new and compact code from both your posts please...>!

    Warm Regards
    e4excel

  13. #13
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    Dear SNB,

    Can you please tell me which codes goes where so that I can atleast try it successfully.


    Sheet Level

    WorkBook Level

    Module Level

    With this info and on succesful trial I can also close the thread as "SOLVED" if its serving the purpose on clicking as mentioned..

    Warm Regards
    e4excel

  14. #14
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    e4excel,
    The double click code snb has provided is a worksheet event code.

  15. #15
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    Thanks Dave for the Suggestion..

    I could now give the solution a try I was making mistakes in putting the code..

    It does work by going to the desired Sheet on selection however I would like it to be Hyperlinked when the user clicks or double-clicks in the cell C3 of the Sheet "ledger-View" I dont want it to be direct as I want the user to first have a go-through on the Ledger-View" Sheet before being diverted to the selected "Account Sheets"..

    So is this possible?

    Warm Regards
    e4excel
    Last edited by e4excel; 03-18-2011 at 01:45 PM.

  16. #16
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    Here you go,
    You can either put in the Double Click event or the Right Click event
    Please Login or Register  to view this content.
    If you look at all the codes provided in this thread, you will see some start with "worksheet" and others start with "workbook".
    This should have given you an indication as to which module the code belongs to.

  17. #17
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    Quote Originally Posted by davesexcel View Post
    If you look at all the codes provided in this thread, you will see some start with "worksheet" and others start with "workbook".
    This should have given you an indication as to which module the code belongs to.
    Yes after your last post I realised that..difference of WorkBook and WorkSheet but how do I know when the code goes in a MOdule?

    Regarding the code, I put the code in the Ledger-view Worksheet and then when I tried it, it still takes me to the Acct X Sheets on dropdown changes unlike on double-click so please advise whether I am doing it right or still missing anything..

    I would like to double-click the Cell C3 in the Ledger-View Sheet after selecting the desired Acct No in the Dropdown and then like to go to the Acct Sheet..

    Warm Regards
    e4excel

  18. #18
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    Did you remove the other codes?

  19. #19
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    Dear Dave,

    No I had not removed the codes earlier but after reading your post I did but in vain..

    WOuld appreciate if you explain what I need to follow or just post a sample workbook with the desired functionality..

    Thanks in advance.

    E4excel

  20. #20
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    yes, I forgot to mention, your cells can't be merged.

    Right click on C3
    Attached Files Attached Files
    Last edited by davesexcel; 03-19-2011 at 08:27 AM.

  21. #21
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: Using HyperLink Function in a Dropdown List does not give the Hyperlink functiona

    Thanks a LOt Dave,,It works exactly the way I wanted!...

    Would also like to thank TghFox and SNB for the earlier help to give an impetus..!

    I was wondering what was it that I was missing..!

    Now just need to re-work on the Merged portion as that cell is merged for a better looking design.. theres no way we can do anything about that, Is it?

    Thanks a lot once again..

    Warm regards
    e4excel

+ 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