Closed Thread
Results 1 to 5 of 5

Baisc Macro knowledge

  1. #1
    Registered User
    Join Date
    10-04-2007
    Posts
    3

    Baisc Macro knowledge

    Hi,

    I only have a very basic knowledge of working with Macros and Excel so hopefully the question i'm going to ask will be relatively simple for someone to answer.

    I'm creating a monitoring system for work and i'm trying to get a macro to tie in alongside a drop down menu. By this i mean that the drop down menu will give several options, i.e. the names of four seperate companies. I want to be able to select one of these companies from the drop down and then when i click on the 'submit' button i wish to be taken to that companies worksheet in the same workbook. So dependent on which company is selected i want to visit one of four worksheets by clicking the same button.

    I hope this is clear...please help if you can, it will be much appreciated!

    Cheers

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    What kind of drop down are you using? You could use hyperlinks instead of VBA.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    10-04-2007
    Posts
    3
    I created the drop down by going through Data toolbar> Validation> List.

    I have absolutely no idea how to use VBA either so i'm kinda blagging it!

    Cheers

  4. #4
    Registered User
    Join Date
    10-04-2007
    Posts
    3
    'Please read forum rules below. Titles like


    Code:
    - some assistance please!
    Are not permitted

    VBA Noob'

    Sorry i'm a newbie...wont happen again.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Assuming that your Data Validation list is in A1 then add this code to the WorkSheet_Change event

    Please Login or Register  to view this content.
    To see how to enter the code see this:

    http://www.excel-it.com/Forum/viewtopic.php?t=11

Closed 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