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 文档后,我想模拟键入“abcd”,然后按 ALT+J。
我怎样才能做到这一点?
内部ThisDocument模块。
ThisDocument
Private Sub Document_Open() Selection.TypeText ("abcd") SendKeys "%{K}" End Sub
参考:SendKeys()
SendKeys()