gpt4 book ai didi

vba - 范围内未找到数字时显示 "duplicate Number"

转载 作者:行者123 更新时间:2023-12-04 21:21:40 26 4
gpt4 key购买 nike

If MoneyTextBox.Value = range("H:H").Find(MoneyTextBox.Value) Then
MsgBox "Duplicate number"
EndIf

enter image description here

最佳答案

改用这个:

If Not IsError(Application.Match(CLng(MoneyTextBox.Value), Range("H:H"), 0)) Then
MsgBox "Duplicate number"
EndIf

关于vba - 范围内未找到数字时显示 "duplicate Number",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44983368/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com