Consulting

Results 1 to 3 of 3

Thread: Sleeper: Move to different cell based on selection

  1. #1

    Sleeper: Move to different cell based on selection

    If I have a list box in cell a11 how can I get excel to goto a different cell based on the value the user selected in the list box
    For example
    IF the users selects the value yes then the cursor will goto a13

    2 catches to this though. I need to use it for different rows (8 total)
    and
    I need to force the user to input a value into the goto cell.

  2. #2
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Hi Eric,

    Is there any chance of you uploading a sample file? If not, please describe exactly what kind of listbox you have created. Plus any additional steps that need to be taken.

    Also, a brief description of what you are trying to do this for may help in offering some other solutions as well.

  3. #3
    Administrator
    VP-Knowledge Base
    VBAX Master
    Joined
    Jan 2005
    Location
    Porto Alegre - RS - Brasil
    Posts
    1,219
    Location
    Eric,

    - create a table with the value you want the user to see at the first column and the column you want to send him at the second;

    - name this range;

    - set this name as the ListFillRange property at the ListBox

    - set ColmunsCount equals to 2

    - set BoundColumn equals to 2

    - set Width equal to ";10"
    You may change the 10 to fit your text.

    - set the onchange event from the ListBox to run a macro

    - put this inside the macro


    Sub GoCell(Cel As Range)
       Cel.Select
    End Sub
    Best Regards,

    Carlos Paleo.

    To every problem there is a solution, even if I dont know it, so this posting is provided "AS IS" with no warranties.

    If Debugging is harder than writing a program and your code is as good as you can possibly make
    it, then by definition you're not smart enough to debug it.




    http://www.mugrs.org

Posting Permissions

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