Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
查看: 2511|回复: 4

[已解决]Sub 打印word所选内容()

[复制链接]
发表于 2014-3-10 09:31 | 显示全部楼层 |阅读模式
Sub 打印word所选内容()
    Application.PrintOut FileName:="", Range:=wdPrintSelection, Item:= _
        wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
        ManualDuplexPrint:=False, Collate:=True, Background:=True, PrintToFile:= _
        False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
        PrintZoomPaperHeight:=0
End Sub

上面这个是录制得到的,麻烦朋友们帮我精简下好吧,谢谢大家了!
最佳答案
2014-3-10 10:06
  1. Sub 打印word所选内容()
  2.     Application.PrintOut Range:=wdPrintSelection, Item:= _
  3.                          wdPrintDocumentContent, Copies:=1, PageType:=wdPrintAllPages, _
  4.                           Collate:=True, Background:=True
  5. End Sub
复制代码
excel精英培训的微信平台,每天都会发送excel学习教程和资料。扫一扫明天就可以收到新教程
发表于 2014-3-10 10:06 | 显示全部楼层    本楼为最佳答案   
  1. Sub 打印word所选内容()
  2.     Application.PrintOut Range:=wdPrintSelection, Item:= _
  3.                          wdPrintDocumentContent, Copies:=1, PageType:=wdPrintAllPages, _
  4.                           Collate:=True, Background:=True
  5. End Sub
复制代码
回复

使用道具 举报

 楼主| 发表于 2014-3-10 11:59 | 显示全部楼层
hwc2ycy 发表于 2014-3-10 10:06

谢谢版主!
回复

使用道具 举报

发表于 2014-3-10 22:47 | 显示全部楼层
学习了,非常实用。
回复

使用道具 举报

发表于 2014-3-11 20:13 | 显示全部楼层
谢谢               
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )

GMT+8, 2024-4-19 05:17 , Processed in 0.251975 second(s), 8 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表