Share via

Change hyperlink (Command Button) based on Drop Down List result

Anonymous
2017-07-31T05:43:54+00:00

Hello...

I have a a drop down list which contains 12 names. Is it possible to have a one command button that will link file base on list choosed?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2017-08-08T14:27:03+00:00

    How to make Command Button go to hyperlink based on value choosed in G6?

    You want to call the link directly?

    Let us assume G6 contains then

    http://www.microsoft.com

    you can use that:

    Sub Test()

      ThisWorkbook.FollowHyperlink Range("G6")

    End Sub

    A file link should also work.

    Andreas.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2017-08-03T04:43:37+00:00

    Hi Andreas Killer

    Sorry late reply, away from PC for moment...

    Ok then..but how to intergrate to Command Button. Lets says :

    C2 : HYPERLINK("http://www.microsoft.com")

    C3 : HYPERLINK("..\data.xlsx","sheet1!A1")

    C4 : HYPERLINK("C:\My Documents\Drawing1.vsdx")

    C5 : HYPERLINK("\Server\Share\Drawing1.vsdx")

    G6 : Drop Down List box 

    How to make Command Button go to hyperlink based on value choosed in G6?

    Appreciates the helps. TQ.

    Was this answer helpful?

    0 comments No comments
  3. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2017-07-31T14:12:07+00:00

    Was this answer helpful?

    0 comments No comments