+ Reply to Thread
Results 1 to 2 of 2

How can I use values in two separate cells to select a new cell?

  1. #1
    nassetr
    Guest

    How can I use values in two separate cells to select a new cell?

    I am using two user form list boxes to return values in two separate cells
    (the cell link). I want one cell to correspond to a row, the other to a
    column. I want a macro button that will automatically select the cell
    corresponding with the values listed in the two cell links. Can anyone help?
    Thanks.

  2. #2
    Toppers
    Guest

    RE: How can I use values in two separate cells to select a new cell?

    Hi,

    Is this what you want? This is for a button using the FORM toolbar
    which calls macro "Button1_Click":

    Sub Button1_Click()

    Dim r as long, c as Integer

    With Worksheets("Sheet1")
    r = .Range("a1") ' Link cell for first listbox - row
    c =. Range("b1") ' Link cell for second listbox - column
    . Cells(r, c).Select
    MsgBox ActiveCell
    End with

    End Sub


    HTH

    "nassetr" wrote:

    > I am using two user form list boxes to return values in two separate cells
    > (the cell link). I want one cell to correspond to a row, the other to a
    > column. I want a macro button that will automatically select the cell
    > corresponding with the values listed in the two cell links. Can anyone help?
    > Thanks.


+ 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