+ Reply to Thread
Results 1 to 3 of 3

Cursor moves after selection

  1. #1
    Registered User
    Join Date
    05-13-2015
    Location
    Hartford, CT
    MS-Off Ver
    10
    Posts
    6

    Cursor moves after selection

    I have a combobox that when I scroll through the items, it's highlighted in blue. After I make a selection (ComboBox1_Change()), it brings up a message Box. When I move the cursor to click on the MessageBox, the selections in the ComboBox are highlighted as the cursor moves over them. The item I selected never changes, it's just annoying that it looks like it's scrolling through the ComboBox items, but it's not. Is there a way to turn off the highlight or keep the highlight on the item chosen?

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Cursor moves after selection

    Post your combobox code


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    05-13-2015
    Location
    Hartford, CT
    MS-Off Ver
    10
    Posts
    6

    Re: Cursor moves after selection

    I load the ComboBox when they open the spreadsheet with members from another worksheet;

    Sub Auto_Open()
    Dim wsCurr As Object
    Dim wsProduct As Worksheet

    Application.EnableEvents = False
    initializingContent = True

    Set wsCurr = ActiveWorkbook.Worksheets("ReadMe")
    Set wsProduct = ActiveWorkbook.Worksheets("Product")

    With wsCurr.ComboBox1
    .Clear
    .AddItem "Pick a Product"
    x = 4
    Do While wsProduct.Cells(x, 1).Value <> ""
    .AddItem wsProduct.Cells(x, 1).Value
    x = x + 1
    Loop
    End With
    wsCurr.ComboBox1.Value = wsCurr.ComboBox1.List(0)
    Application.EnableEvents = True
    initializingContent = False
    End Sub

    When they pick a selection, I run a Macro;

    Private Sub ComboBox1_Change()
    If Not initializingContent Then
    Call QuestMFSend
    End If
    End Sub


    In the QuestMFSend macro, it gets the selection this way;

    With wsOBJ.ComboBox1
    sProduct = .Value
    End With
    Attached Images Attached Images

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] cursor moves to right when i protect sheet
    By mrl in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-22-2013, 10:19 AM
  2. Cursor moves when pressing <Enter>
    By nsv in forum Excel General
    Replies: 2
    Last Post: 02-07-2011, 06:54 AM
  3. Macro that moves cursor
    By papaexcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-19-2010, 04:45 PM
  4. Replies: 2
    Last Post: 08-03-2009, 04:34 PM
  5. Tab moves Cursor over 12 columns
    By fsisd in forum Excel General
    Replies: 2
    Last Post: 11-20-2007, 12:42 PM
  6. [SOLVED] cursor moves view instead of selection
    By Nigel in forum Excel General
    Replies: 2
    Last Post: 08-13-2006, 04:45 PM
  7. [SOLVED] TAB button moves cursor from Colum A, to M, then Y...
    By Chris Hagler in forum Excel General
    Replies: 2
    Last Post: 07-21-2005, 11:05 AM
  8. Replies: 2
    Last Post: 02-20-2005, 02:06 PM

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