在Mac Mac 2016中录制宏的问题 [英] Problem with recording macro in word Mac 2016

查看:137
本文介绍了在Mac Mac 2016中录制宏的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为我重复做的事情设置一个简单的宏。我有很多单词文档,我需要在一页上打印不到四页的页面。



如果我手动完成,我可以成功打印,但是当我录制宏时它不起作用并在四页上打印一到四页



非常令人沮丧。



这是宏记录 



Sub   printpage()


'


'printpage Macro


'


'


    Application.PrintOut fileName:="",Range:= wdPrintRangeOfPages,Item:= _


        wdPrintDocumentContent,Copies:= 1,Pages:=" 1-4",PageType:= _


        wdPrintAllPages,整理:= ,背景:= 错误


结束< span style ="">  Sub


Sub   Macro1()


'


'Macro1 Macro


'


'


结束  Sub


< p style ="">



任何想法如何通过打印1-4页来纠正这个问题仅限一页。



谢谢



Lee

解决方案

Hi Lee,


感谢您访问我们的论坛。


然后此论坛主要关注有关Office客户端的一般问题和反馈。由于您的问题与开发涉及Word的问题更相关,我会将您的问题转移到以下专用的MSDN MSDN论坛:


https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=worddev


我们建议适当发布的原因是您将获得最合格的受访者群体,而定期阅读论坛的其他合作伙伴可以分享他们的知识或从您与我们的互动中学习。


非常感谢您的理解。


最好的问候,

Yuki Sun


I am trying to set up a simple macro for something I do repetitively. I have lots of word documents for which I need to print just pages not to four all on one page.

I can print this successfully if I do it manually but when I record a macro it does not work and prints pages one to four on four pages

really frustrating.

This is the macro which was recorded 

Sub printpage()

'

' printpage Macro

'

'

    Application.PrintOut fileName:="", Range:=wdPrintRangeOfPages, Item:= _

        wdPrintDocumentContent, Copies:=1, Pages:="1-4", PageType:= _

        wdPrintAllPages, Collate:=True, Background:=False

End Sub

Sub Macro1()

'

' Macro1 Macro

'

'

End Sub

Any ideas how to rectify this by getting pages 1-4 printed on one page only.

Thank you

Lee

解决方案

Hi Lee,

Thanks for visiting our forum.

Then this forum mainly focus on general questions and feedback about Office client. Since your issue is more related to developing issues involving Word, I'll move your question to the following dedicated MSDN forum for Word:

https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=worddev

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.

Your understanding is appreciated.

Best regards,
Yuki Sun


这篇关于在Mac Mac 2016中录制宏的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆