Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 06-11-2020, 06:14 AM
p45cal's Avatar
p45cal p45cal is offline Allow User to Define Tooltip Upon Data Entry Windows 10 Allow User to Define Tooltip Upon Data Entry Office 2019
Expert
 
Join Date: Apr 2014
Posts: 956
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

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.
Reply With Quote
 

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
Allow User to Define Tooltip Upon Data Entry Insert input box into macro to allow user to define search term Hoxton118 Word VBA 3 05-19-2014 02:03 AM
Allow User to Define Tooltip Upon Data Entry 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

Other Forums: Access Forums

All times are GMT -7. The time now is 09:49 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft