Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / April 2008

Tip: Looking for answers? Try searching our database.

How to do when the Cell is in color jump to next cell?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jean - 13 Apr 2008 18:30 GMT
Hi,
I have a worksheet with some column in blue color background & when i enter
the data in this worksheet (direction Right when I press the ENTER key) I
would like if the next column is in blue the cursor automaticly jump to the
next column until the cell have no background color.
It is Possible?
Thank you very much

Jean
Rick Rothstein (MVP - VB) - 13 Apr 2008 19:17 GMT
I guess you could use SelectionChange event code something like this...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
 If Target.Cells.Interior.ColorIndex = 41 And _
    Target.Column < Columns.Count And Target.Count = 1 Then
   Target.Offset(0, 1).Select
 End If
End Sub

Change the number 41 I used above to the ColorIndex value for your
particular Blue color.

Rick

> Hi,
> I have a worksheet with some column in blue color background & when i
[quoted text clipped - 7 lines]
>
> Jean
jean - 13 Apr 2008 20:20 GMT
Thank you very much.
I copy that in my sheets after changing the number of the colorindex & it
work beautifully.
Thank you again.
Jean

> I guess you could use SelectionChange event code something like this...
>
[quoted text clipped - 21 lines]
> >
> > Jean
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.