Consulting

Results 1 to 2 of 2

Thread: Command button to go to another sheet with drop button click

  1. #1
    VBAX Newbie
    Joined
    May 2020
    Posts
    3
    Location

    Command button to go to another sheet with drop button click

    hello guys
    i have a hyperlink button for each item written (electricity, water, co2):
    R858b7j.jpg

    When the user choose (co2, electricity or water) in the scroll-list, and click "validate" button it will bring up to worksheet with the same name
    How can i change this to a command button in my VBA userform!!

  2. #2
    VBAX Mentor 大灰狼1976's Avatar
    Joined
    Dec 2018
    Location
    SuZhou China
    Posts
    479
    Location
    Hi aiman015!
    Something like below:
    sub test
    sheets(combobox2.value).activate
    end sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •