Why can't I use the “Any” as a name in VBA?
问题 While trying to define an Any() function like python's, I found that I couldn't name anything "Any". Attempting to name a Function, Sub, Const, or variable any will throw a syntax error and the VBA IDE will highlight it. I know any not a particularly great name, but why is it throwing a syntax error? The only reason I could think of was that it might be a reserved keyword, but it's not. 回答1: VBA (Visual Basic for Applications) is not VB.NET, even though they share the same "Visual Basic"