+ Reply to Thread
Results 1 to 3 of 3

Click event moves user to column W

  1. #1
    ToferKing
    Guest

    Click event moves user to column W

    I have a combo box that I have created.

    When one of my users pulls the drop down to place an item into a cell, how
    do I tell the Click Event to move the person's cursor to column W (or C23)
    before placing the item they chose?

    Here is my current vb code:

    Private Sub ComboBoxForemen_Click()
    ActiveCell.Value = ComboBoxForemen.Value
    ComboBoxForemen.Value = "Foremen List"
    ActiveCell.Select
    ActiveCell.Offset(1, 0).Select
    End Sub

    Thanks so much. Tofer

  2. #2
    Valued Forum Contributor
    Join Date
    04-11-2006
    Posts
    407
    This will move it to column "W":

    Private Sub ComboBoxForemen_Click()
    myCell = "W" & ActiveCell.Row
    Range(myCell).Value = ComboBoxForemen.Value
    ComboBoxForemen.Value = "Foremen List"
    ActiveCell.Offset(1, 0).Select
    End Sub


    Hope that helps.

  3. #3
    ToferKing
    Guest

    Re: Click event moves user to column W

    Ikaabod,

    That solved it!

    Thanks ever so much.

    Tofer

    "Ikaabod" wrote:

    >
    > This will move it to column "W":
    >
    > Private Sub ComboBoxForemen_Click()
    > myCell = "W" & ActiveCell.Row
    > Range(myCell).Value = ComboBoxForemen.Value
    > ComboBoxForemen.Value = "Foremen List"
    > ActiveCell.Offset(1, 0).Select
    > End Sub
    >
    >
    > Hope that helps.
    >
    >
    > --
    > Ikaabod
    > ------------------------------------------------------------------------
    > Ikaabod's Profile: http://www.excelforum.com/member.php...o&userid=33371
    > View this thread: http://www.excelforum.com/showthread...hreadid=534923
    >
    >


+ 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