excel图表制作:将数据打印在VBE立即窗口的一行中
时间:2023-05-30 10:41:26
这是一个很简单的技巧,但有时可能会给你的代码调试带来一些方便。
通常,在编写代码时,我们会在其中放置一些Debug.Print语句,用来在立即窗口中打印程序运行过程中的一些变量值,了解程序的运行状态。一般情况下,Debug.Print语句每运行一次,就会将要打印的数据输出到不同的行中,如下图1所示。
图1
那么,我们能不能将这些数据打印在同一行中呢?将数据打印在同一行中,更方便查看结果,特别是有很多数据要打印时更是如此。
其实很简单,在Debug.Print语句中要打印的变量后面加上一个分号就可以了,如下图2所示。
图2
可以看到,在立即窗口的同一行中输出了结果。这样,在立即窗口显示不下数据时,就不需要我们滚动向下查看数据了。对于数据不少、也不多的情况,可以试试!
标签:excel图表制作,excel常用函数,excel数据透视表,Excel教程
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
win11右键刷新有延迟怎么解决?
2023-10-05 07:04:53
![](https://img.aspxhome.com/file/2023/30/a267751_0s.jpg)
Win11壁纸在哪个文件夹?Win11壁纸保存位置
2022-12-11 13:46:04
![](https://img.aspxhome.com/file/2023/27/a236966_0s.jpg)
搜狗输入法怎样切换?
2023-05-10 04:28:04
![](https://img.aspxhome.com/file/2023/5/a317343_0s.jpg)
WPS文字中田字格的制作
2022-06-05 17:11:09
Word文档损坏
2023-12-02 23:10:20
![](https://img.aspxhome.com/file/2023/4/19504_0s.jpg)
SQL Server 2019怎么安装?SQL Server 2019详细安装方法教程
2022-01-31 08:35:24
![](https://img.aspxhome.com/file/2023/7/a329001_0s.png)
如何在Word中用插入符号功能快速输入生僻字
2023-06-18 15:41:52
![](https://img.aspxhome.com/file/2023/2/33932_0s.jpg)
笔记本无线网卡如何打开?
2023-06-11 00:57:15
![](https://img.aspxhome.com/file/2023/3/a293619_0s.png)
Wallpaper Engine怎么设置开机自启动
2023-09-14 07:04:43
![](https://img.aspxhome.com/file/2023/4/a308583_0s.gif)
3DMark曝光全新i5-L16G7处理器 图形分数跑出1165分
2022-06-02 04:29:06
![](https://img.aspxhome.com/file/2023/3/a295828_0s.jpg)
如何查看wps历史记录?怎么删除wps记录
2022-05-06 22:45:16
![](https://img.aspxhome.com/file/2023/5/a167005_0s.jpg)
Excel中制作下拉菜单时去除空值的操作技巧
2022-01-25 15:17:53
![](https://img.aspxhome.com/file/2023/4/40794_0s.jpg)
win8.1杀毒软件用哪个好? win8杀毒软件排行榜
2023-07-02 23:02:31
![](https://img.aspxhome.com/file/2023/29/a255397_0s.jpg)
BIOS设置光驱启动的方法和步骤
2022-09-15 21:59:15
![](https://img.aspxhome.com/file/2023/6/a326428_0s.jpg)
在word2007中合适选择链接和插入
2023-04-01 08:45:55
![](https://img.aspxhome.com/file/2023/0/22230_0s.jpg)
在excel中如何提取显示公式
2022-10-26 07:25:21
Win10系统无法安装软件怎么办 不能安装软件的解决方法
2023-08-29 04:33:57
![](https://img.aspxhome.com/file/2023/4/a306428_0s.jpg)
Win10系统日历怎么设置?Win10设置日历教程
2023-05-12 06:35:09
![](https://img.aspxhome.com/file/2023/26/a220802_0s.jpg)
Excel如何让冗长的身份证号出现在一个单元格中
2022-03-06 15:18:50
![](https://img.aspxhome.com/file/2023/7/a143037_0s.jpg)
WPS最常用的求和函数?最常用的求和函数SUM
2023-09-17 10:50:56
![](https://img.aspxhome.com/file/2023/5/a182165_0s.jpg)