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.
我对它的Private Sub Document_Open()工作原理有点困惑。我知道你必须把它放在“ThisDocument”区域。但是如果我想在那里放置 3 或 4 个宏怎么办?你能做到吗?如果是的话,你是怎么做的?因为我也理解您不能在两个宏中使用相同的子名称。
Private Sub Document_Open()
Private Sub Document_Open() Macro1 Macro2 Macro3 End Sub sub Macro1() 'do stuff End Sub sub Macro2() 'do stuff End Sub sub Macro3() 'do stuff End Sub