gpt4 book ai didi

excel - VBA Excel : Like operator does not working correctly

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

为什么Like功能不起作用?在这种情况下,它返回:

"No, it's not"


Sub test()
If "*ыписка по договору ук-004#1500333*" Like "выписка по договору ук-004#1500333 стд.xlsx" Then
MsgBox "Yes, it is!"
Else
MsgBox "No, it's not"
End If
End Sub

最佳答案

你有向后的字符串。

If {string} Like {substring w/wildcards} Then
Sub test()
If "выписка по договору ук-004#1500333 стд.xlsx" Like "*ыписка по договору ук-004#1500333*" Then
MsgBox "Yes, it is!"
Else
MsgBox "No, it's not"
End If
End Sub

关于excel - VBA Excel : Like operator does not working correctly,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53011305/

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