Macro To Check If Data False from a formula

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,077
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi..

i need macro code to check if data in a cell FALSE not "connected" again with the formula,
i mean that formula in data validation setting
i want to show message box or anything where that cell is problem (false-not connected) marked.

i hope someone could help me.

m.susanto
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
I read your request three times but really have no idea what you mean.
false-not connected
Please explain what that means.
Give an example of (a part of) the sheet.
 
Upvote 0
I read your request three times but really have no idea what you mean.

Please explain what that means.
Give an example of (a part of) the sheet.

in data validation formula setting only number can be entry

1
2
t
5

sometimes we copy paste i mean like t (as strange) so the result is wrong..
how to check or identify if in my range contains not should be "value" for this problem is t
 
Upvote 0
no matter if can be do with usually formula i mean not always macro/vba..
just checking cell it
 
Upvote 0
maybe this code can modify

Code:
Sub test()    On Error Resume Next
        If ActiveCell.SpecialCells(xlCellTypeSameValidation).Cells.Count < 1 Then
            MsgBox "Active Cell does not have validation"
        Else
            MsgBox "Active cell has Validation"
        End If
    On Error GoTo 0
End Sub

but i want showing/display or information the cell contains not have validation
 
Upvote 0
expected result : showing information that cell contains not have validation formula
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,238
Members
448,555
Latest member
RobertJones1986

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top