如何查询Excel当前打印机名称
时间:2023-11-27 20:01:39
在Excel VBA中,如果需要查询Excel当前打印机名称以方便用户的操作,可通过VBA查询Excel当前打印机名称。Excel2003可通过VBA宏查询Excel当前打印机名称。
查询Excel当前打印机名称的方法:
首先按“Alt+F11”组合键,Excel2003打开代码编辑器,单击“插入”菜单-“模块”,双击插入的模块,在右侧的代码窗口中输入:
Sub Excel_Partner()
MsgBox "Excel当前打印机名称为:" & Application.ActivePrinter
End Sub
按F5运行键运行程序,返回当前系统下Excel当前打印机名称。
标签:可通过,名称,打印机,查询,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Excel中如何设置单元格内容改变时自动变色
2022-02-14 04:58:39
![](https://img.aspxhome.com/file/2023/1/a153411_0s.jpg)
excel 常用的66个函数功能速查
2022-07-17 08:21:59
![](https://img.aspxhome.com/file/2023/1/a162101_0s.png)
怎么找出藏在win7中的Windows Mail
2023-01-11 18:06:34
![](https://img.aspxhome.com/file/2023/29/a255639_0s.gif)
网易云音乐怎么更改歌词样式?教你轻松修改歌词大小颜色
2022-12-30 16:00:20
![](https://img.aspxhome.com/file/2023/7/a331992_0s.jpg)
Win8.1怎么连接隐藏SSID网络从而无线联网
2023-05-21 10:13:11
![](https://img.aspxhome.com/file/2023/29/a253161_0s.jpg)
搜狗输入法十大技巧
2022-04-03 16:13:01
![](https://img.aspxhome.com/file/2023/5/a318166_0s.jpg)
关闭Win7会提示等待程序关闭 取消Win7关闭电脑等待时间方法
2023-06-17 07:39:55
![](https://img.aspxhome.com/file/2023/29/a254246_0s.jpg)
Win10电脑疑难解答功能无法使用如何解决?
2023-06-01 20:18:03
![](https://img.aspxhome.com/file/2023/30/a271746_0s.jpg)
电脑远程网络连接提示错误711无法加载远程访问怎么办
2022-12-04 11:04:25
![](https://img.aspxhome.com/file/2023/2/a290144_0s.jpg)
为什么大家喜欢买“苹果电脑”却装“win7系统”
2023-07-06 16:13:43
![](https://img.aspxhome.com/file/2023/4/a311778_0s.jpg)
电脑奇偶校验存储空间故障导致Win10 2004用户无法升级怎么办?
2022-11-17 00:44:43
![](https://img.aspxhome.com/file/2023/26/a221702_0s.png)
Win10升级预览版10061时更新到100%卡住如何处理?
2023-02-26 10:42:15
![](https://img.aspxhome.com/file/2023/26/a226990_0s.jpg)
word2013如何给文档设置密码
2022-03-22 11:33:15
WordPress博客轻松变身Win10应用
2022-06-02 22:41:10
![](https://img.aspxhome.com/file/2023/5/a314822_0s.jpg)
excel怎么设置按条件筛选函数
2022-02-10 16:10:23
迅雷看看怎么截取静态和动态图 迅雷看看截取静态和动态图的方法
2023-11-21 18:07:57
![](https://img.aspxhome.com/file/2023/8/a338168_0s.jpg)
excel中设置公式保护的教程
2022-11-17 03:51:21
win10机械硬盘很慢怎么办?
2023-08-07 09:09:01
![](https://img.aspxhome.com/file/2023/4/a306158_0s.png)
极品五笔输入法的常见使用技巧介绍
2022-01-29 19:53:24
如何解决PowerPoint2013插入公式后卡顿和反应慢的问题
2023-07-19 14:32:09