PC Review


Reply
Thread Tools Rate Thread

data validation, mouse action of select... then move right

 
 
cate
Guest
Posts: n/a
 
      27th Feb 2010
I have a cell that uses a combobox selector to input data (data
validation). I'd like the active cell to move right after the
selection is made. Is that possible? I can setup the enter key to
advance this way or that, but I can't figure out how to setup a mouse
action like this.

Thank you.
 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      28th Feb 2010
Say you are entering data into cell B9 with some code. After the cell has
been filled, how about :

Range("C9").Select

or in the general case, if you are filling MyCell, then afterwards:

MyCell.Offset(0,1).Select
--
Gary''s Student - gsnu201001


"cate" wrote:

> I have a cell that uses a combobox selector to input data (data
> validation). I'd like the active cell to move right after the
> selection is made. Is that possible? I can setup the enter key to
> advance this way or that, but I can't figure out how to setup a mouse
> action like this.
>
> Thank you.
> .
>

 
Reply With Quote
 
rumkus@hotmail.com
Guest
Posts: n/a
 
      28th Feb 2010
Rigt click on the sheet tab and click "view code".
Copy below code and paste it on the code window.
A6 as the cell with validation. Change it to your cell address.
-------------------------------------------------------

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Me.Range("A6")) Is Nothing Then
Target.Offset(0, 1).Select
End If
End Sub
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get a Data validation list to select another validation l langston35 Microsoft Excel New Users 1 28th Sep 2009 08:38 AM
I can't move the cursor with my mouse, can't select text, etc. =?Utf-8?B?Tm9ibGU=?= Microsoft Outlook Discussion 4 28th Jul 2007 05:38 AM
Select one cell, move mouse multiple cells are selected not a F8 i =?Utf-8?B?QXJ0aHVy?= Microsoft Excel Crashes 1 21st Mar 2007 07:47 PM
Unable to copy, delete, share, or move a folder thru right-click action of mouse Taj Microsoft Windows 2000 0 27th Apr 2004 07:19 PM
How to trigger the validation action before data row is updated Rabbit Microsoft ADO .NET 3 13th Oct 2003 05:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:36 AM.