我在word文档里用VBA设置了几个按钮用于点击后打印指定页码,但是在用邮件合并生成的文档里按钮却不能用了

请问如何设置,(按钮还在,按钮里面的VBA代码也没了。)
例如点击CommandButton4的代码
Private Sub CommandButton4_Click()
Application.PrintOut FileName:="", Range:=wdPrintRangeOfPages, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="2-3", PageType:= _
wdPrintAllPages, ManualDuplexPrint:=False, Collate:=True, Background:= _
True, PrintToFile:=False, PrintZoomColumn:=0, PrintZoomRow:=0, _
PrintZoomPaperWidth:=0, PrintZoomPaperHeight:=0
End Sub

关键是邮件合并后生成的新文档里按钮的代码全没了。

第1个回答  2012-06-18
邮件合并后生成的新文档你要重新载入宏

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网