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.
在 Word 2003 中,我使用:
Call modulename.subname(passvar)
在 Word 2010 中,它给了我一个运行时错误 13 错误类型不匹配?有任何想法吗?
很可能在您的 Sub 中subname您指定了一个参数的类型以使其期望,并且您passvar与该类型不匹配(可能是因为您尚未声明它并且它作为 传递Object)
subname
passvar
Object