+ Reply to Thread
Results 1 to 8 of 8

picking an item from listbox to go to another WS

  1. #1
    Registered User
    Join Date
    05-14-2013
    Location
    Istanbul
    MS-Off Ver
    Excel 2003
    Posts
    7

    picking an item from listbox to go to another WS

    Hello,


    I hope everything is great for you. I need your urgent help please.
    I created a listbox on a worksheet. I would like to go to specific worksheet which I linked, when I select an item from the listbox and click a button that I created on the same ws.
    I've found that code below from forum but it doesnt inlude the button code. Also I would like to hide all the WS' if it is possible ? Please help me. Thank you in advance.

    Please Login or Register  to view this content.
    Briefly : when I pick AA and click to Button, I would like to go to AA WS.

    Best Regards,
    Attached Files Attached Files
    Last edited by aydinaks; 05-14-2013 at 06:51 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: picking an item from listbox to go to another WS

    Can you please upload a sample of the file you are using?

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    05-14-2013
    Location
    Istanbul
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: picking an item from listbox to go to another WS

    I've added the sample file.Thank you.
    Last edited by aydinaks; 05-14-2013 at 06:56 AM.

  4. #4
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: picking an item from listbox to go to another WS

    You would put similar code in the button_click event for your button

    like

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-14-2013
    Location
    Istanbul
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: picking an item from listbox to go to another WS

    Hello,

    Unfortunately it doesnt work. Now I have a Run time error:438 Object doesnt support this property or method
    Last edited by aydinaks; 05-14-2013 at 07:08 AM.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: picking an item from listbox to go to another WS

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  7. #7
    Registered User
    Join Date
    05-14-2013
    Location
    Istanbul
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: picking an item from listbox to go to another WS

    Dear Andy,

    You and all the forum friends are great ! Thank you very much. Here is my last question. Is it possible to add this code to the main code (yours) to hide the sheet ?
    If so, could you please help me ? Thank you in advance.

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-14-2013
    Location
    Istanbul
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: picking an item from listbox to go to another WS

    I've solved all the problem.Thank you very much for all.

    All the Best,

+ 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