Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用大量 VBA 构建 Access 中的数据库。
如果我可以将活动子程序的名称传递给字符串,这将有助于错误报告。这在VBA中可能吗?
谢谢。
是的......手动:-)
sActiveRoutine = "MySubName"
如果您使用像 MZ Tools 这样的产品,您可以通过定义自定义标题来简化此操作。 VBA 没有办法返回当前 proc 的名称。