+ Reply to Thread
Results 1 to 2 of 2

How can program to goto to the particular cell

  1. #1
    Registered User
    Join Date
    12-20-2011
    Location
    cheenai
    MS-Off Ver
    Excel 2007
    Posts
    68

    How can program to goto to the particular cell

    Hi All

    I am new to Excel Programming. In my project i should display the 10 necessary items

    in Listbox. When the user clicks the any one of the items in the list box it should

    go to the particular cell.

    How can i program it?could any one can help me

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: How can program to goto to the particular cell

    Hi
    without more details its a bit hard to tell, but ...
    I'm assuming you have

    a listbox called "list box 1" in your active worksheet
    a range in the same worksheet which is the source list used in the worksheet
    assigned macro listbox1_change to the listbox

    if so, this macro will select the cell in your box's source range containing whatever item you choose in the listbox

    Sub listbox1_change()
    Dim rng, listval
    rng = ActiveSheet.Shapes("List Box 1").ControlFormat.ListFillRange
    listval = ActiveSheet.Shapes("List Box 1").ControlFormat.Value
    Range(rng).Cells(listval).Select
    End Sub

+ 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