![]() |
|
#8
|
||||
|
||||
|
Not sure what you want but try replacing with:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim cll As Range
Set cellsToProcess = Intersect(Target, Range("B2:J4"))
If Not cellsToProcess Is Nothing Then
For Each cll In cellsToProcess.Cells
With cll.Validation
If HasValidation(cll) Then
If .Type = xlValidateInputOnly Then
If Len(cll.Value) > 0 Then
cll.Select
.InputMessage = InputBox("Confirm/Edit customer ID for selected cell", , .InputMessage)
.ShowInput = True
If .InputMessage = "" Then .Delete
Else
.ShowInput = False
End If
End If
Else
If Len(cll.Value) > 0 Then
.Add Type:=xlValidateInputOnly
cll.Select
.InputMessage = InputBox("Enter customer ID for selected cell")
If .InputMessage = "" Then .Delete
End If
End If
End With
Next cll
End If
End Sub
Last edited by p45cal; 06-11-2020 at 02:26 PM. |
| Tags |
| define, multicolumn, tooltip |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Excel to be edited by multiple user but relevant user should see only his data | dolphine4u | Excel | 1 | 07-24-2016 12:40 AM |
| Date/Time Formula for Entry level XL user | talon1driver | Excel | 2 | 09-18-2014 02:32 PM |
Insert input box into macro to allow user to define search term
|
Hoxton118 | Word VBA | 3 | 05-19-2014 02:03 AM |
User Form to Automate Entry in report
|
Panzer | Word VBA | 2 | 08-22-2012 04:17 AM |
| define a mail merge data source using unc (universal naming convention) | charlesandrews | Mail Merge | 0 | 08-21-2012 10:33 AM |