Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
PATRICK
You wrote this The code doesn't need to be complex. First test that its a number, then count the digits. Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$J$7" Then '[A] If IsNumeric(Target.Value) Then '[b] If Len(Target.Text) = 3 Then '[C] Range("C11").Select Exit Sub End If '[C] End If '[b] MsgBox "Enter a three digit number please" End If '[A] End Sub QUESTION: How do you select a group of cells -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
On opening a worksheet move focus to a cell based on date | Excel Worksheet Functions | |||
Type set amount of digits in one cell then automatically move to n | Excel Worksheet Functions | |||
Type 3 digits in one cell then automatically move to next cell. | Excel Discussion (Misc queries) | |||
The screen should not move to focus on column using when typing | Excel Discussion (Misc queries) | |||
must press enter 2x to move cell focus | Excel Discussion (Misc queries) |