用宏来完成Excel2007工作表的逆序打印
时间:2022-01-19 02:50:51
①启动Excel表格,单击视图--宏--录制宏。
②宏名可以自己随意定,但为了正规,一般都采用英文命名法,ReversePrint。
③命名之后,返回主界面,按ALT+F8快捷键打开宏管理界面,选择ReversePrint,单击编辑按钮。
④下面,我以我以往的编程经验,提供大家下面的代码,大家只需要将其替换原先的代码即可。
Sub ReversePrint()
Dim NumPages As Long, Page As Long
NumPages = ExecuteExcel4Macro("GET.DOCUMENT(50)")
For Page = NumPages To 1 Step -1
ActiveSheet.PrintOut from:=Page, To:=Page
Next Page
End Sub
⑤最后,执行宏即可完成逆序打印了。编程十分好用,但是也难理解。不得不说从事程序员是一项苦逼的差事。
标签:用宏来完成Excel2007工作表的逆序打印
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
win10一段时间不用网络就掉线连不上怎么办?有什么解决方法?
2023-09-25 09:29:41
![](https://img.aspxhome.com/file/2023/4/47464_0s.jpg)
三步学会怎么将pdf转换成excel
2022-12-16 07:29:27
![](https://img.aspxhome.com/file/2023/1/37421_0s.jpg)
Excel2016多种方法提取列表数字
2023-09-14 17:47:35
![](https://img.aspxhome.com/file/2023/0/36240_0s.jpg)
Word页眉页脚设置方法
2022-09-10 15:46:04
Win10使用技巧有哪些?Win10使用技巧大全
2023-12-03 04:18:44
![](https://img.aspxhome.com/file/2023/9/51249_0s.png)
Win10 20H2怎么组建家庭局域网?
2023-11-22 04:10:38
![](https://img.aspxhome.com/file/2023/1/50291_0s.jpg)
Win10 1909我的电脑不见了?我的电脑图标找回方法简述
2023-11-13 03:53:40
![](https://img.aspxhome.com/file/2023/9/48769_0s.jpg)
如何使用MathType批量调整Word文档中公式的大小
2022-04-15 21:57:30
Win10系统升级后重启进入系统黑屏怎么解决?
2023-11-25 22:21:52
![](https://img.aspxhome.com/file/2023/9/51049_0s.png)
word文档内ABCD对齐技巧,批量对齐排版,工整设计秒治强迫症
2023-11-08 15:37:32
![](https://img.aspxhome.com/file/2023/0/16920_0s.png)
安装Win10系统后无法进入Bios是什么问题?win10无法进入BIOS的修复教程
2023-08-01 12:13:09
![](https://img.aspxhome.com/file/2023/0/46710_0s.jpg)
word实现自动编排目录的两种方法
2022-12-17 22:44:50
Word双击后不能直接打解决方法
2023-12-08 10:28:55
Word自动生成目录的几种方法步骤
2023-11-12 21:45:58
![](https://img.aspxhome.com/file/2023/8/17658_0s.jpg)
利用word制作试卷时,选择题的四个选项怎样严格对齐?
2022-08-27 13:22:31
![](https://img.aspxhome.com/file/2023/6/35686_0s.png)
怎么把图片文字转换成word文字?
2022-12-13 08:12:35
![](https://img.aspxhome.com/file/2023/6/20886_0s.jpg)
word2013如何设置横向纵向同时存在
2023-11-18 18:19:45
![](https://img.aspxhome.com/file/2023/5/17925_0s.jpg)
Word2013文档怎么设置打印自选图形?
2022-11-03 07:11:00
![](https://img.aspxhome.com/file/2023/4/25374_0s.jpg)
word文档如何居中表格里的数字
2022-12-18 21:28:59
![](https://img.aspxhome.com/file/2023/9/31749_0s.png)
win10系统无法进入安全模式怎么办?
2023-08-12 01:35:23
![](https://img.aspxhome.com/file/2023/1/46901_0s.jpg)