excel打印宏

There is a sample file on my Contextures site, in which you can enter invoice details, then print all the new invoices by clicking a button.

我的Contextures网站上有一个示例文件,您可以在其中输入发票详细信息,然后通过单击一个按钮来打印所有新发票。

I’ve updated the file, and you can now download the xlsm version, if you’re using Excel 2007 or a later version.

我已经更新了文件,如果您使用的是Excel 2007或更高版本,则现在可以下载xlsm版本。

在表格中存储发票明细 (Store Invoice Details in Table)

In the new version, the invoice data is stored in a named Excel table, and a named range – Database – is based on that table. The range is dynamic, because it is based on the named table, so it will include new rows as they are added.

在新版本中,发票数据存储在一个命名的Excel表中 ,一个命名范围-数据库-基于该表。 该范围是动态的,因为它基于命名表,所以它将在添加新行时包括它们。

Invoices that have been printed are marked with an X, and the new invoices do not have a mark in column A.

已打印的发票带有X标记,新的发票在A列中没有标记。

计算未打印的发票 (Count Unprinted Invoices)

On the Invoice sheet, you can see how many invoices have not been printed. A formula calculates that number by counting invoice numbers and subtracting the count of X marks:

在“发票”表上,您可以看到尚未打印多少张发票。 公式通过计算发票编号并减去X标记的数量来计算该编号:

=COUNTA(Data!B2:B25)-COUNTA(Data!A2:A25)

= COUNTA(数据!B2:B25)-COUNTA(数据!A2:A25)

打印发票 (Print the Invoices)

When you click the Print Invoices button, a macro filters the list, to show only the records with a blank cell in column A. This code is quite different from the previous version, because it uses List AutoFilter VBA, which is only available in newer versions of Excel.

当您单击“打印发票”按钮时,宏将过滤列表,以仅显示A列中具有空白单元格的记录。此代码与以前的版本完全不同,因为它使用的是List AutoFilter VBA ,仅在较新的版本中可用版本的Excel。

Then, for each of those records, the invoice is printed, and then the record is marked with an “X”.

然后,对于这些记录中的每一个,打印发票,然后用“ X”标记该记录。

下载样本文件 (Download the Sample File)

To see how the invoice printing macro works, and to view the code, you can download the sample file. On the Sample Spreadsheets page, go to the Functions section, and look for FN0009 - Print Unmarked Invoices

若要查看发票打印宏的工作方式并查看代码,可以下载示例文件。 在“样本电子表格”页面上,转到“功能”部分,然后查找“ FN0009-打印未标记的发票”

The zipped file is in Excel 2007/2010 format (xlsm), and contains macros.

压缩文件为Excel 2007/2010格式(xlsm),包含宏。

翻译自: https://contexturesblog.com/archives/2013/02/12/print-invoices-with-excel-macro/

excel打印宏


http://www.taodudu.cc/news/show-4483480.html

相关文章:

  • 要报销的发票如何批量下载打印
  • String转QString,线段相交,四点共面,git相关操作,截图,扩展工具,string乱码,矩阵相乘
  • 求生之路2rpg服务器账号跨服,求生之路2官方地图指令大全及地图文件夹位置说明...
  • 未转变者DLC皮肤在服务器,未转变者 steam上 最新的版本 肿么联机?肿么创建房间...
  • 求生之路2服务器ip直连,寝室无法通过ip直连,而且进入游戏后发现一些奇怪的地方……求帮助...
  • 求生之路2不显示局域网服务器,【求生之路2怎么局域网联机】如何局域网联机_求生之路2局域网联机教程_游戏城...
  • 求生之路2右下角显示服务器,求生之路2公网联机工具右下角刷不出服务器
  • 求生之路无限子弹服务器,求生之路2怎么调无限子弹(在单机中)
  • 求生之路2服务器搭建(基于LinuxGSM一键完成,完美支持8人)
  • 求生之路2服务器ip直连,正版求生之路2好友直连显示该会话已不可用,无法联机...
  • 求生之路2服务器无限刷特感,求生之路2全部联机方法一览_求生之路2怎么联机_牛游戏网...
  • Left 4 Dead 2如何局域网联机
  • 游侠联机服务器没有响应,求助,游戏联机出现错误 - 《生存之旅2》 - 3DMGAME论坛 - Powered by Discuz!...
  • 股票交易下单接口-接口设计规则
  • 股票交易原则与成交顺序
  • 股票交易日志4 12.16
  • 【汇正财经】股票成交原则有哪些?竞价交易呢?
  • 基于Android的股票交易软件,基于android的股票交易系统的融资融券交易子系统的设计与实现-软件工程专业论文.docx...
  • 基于Android的股票交易软件,基于Android的股票交易系统的融资融券交易子系统的设计与实现...
  • java基于springboot的股票交易模拟系统
  • 《数据挖掘导论》 - 读书笔记(3) - 数据 [2016-8-13]
  • The Tenth Of Word-Day
  • 【数据挖掘导论】读书笔记 - (1)
  • 【Java】 第六章 接口、lambda 表达式与内部类 Java核心技术卷1基础知识原书第10版 读书笔记
  • 研究生自救-写论文篇
  • 《Effective Java》读书笔记 - 11.序列化
  • 简单读!Mybatis源码(一)一条select的一生
  • 《数据挖掘导论》- 读书笔记(3)- 数据
  • zoj_3326_An Awful Problem(日期模拟)
  • 英读廊——吃醋的女朋友(A Jealous Girlfriend)

excel打印宏_使用Excel宏打印发票相关推荐

  1. excel设置打印区域_仅在没有打印区域的情况下打印Excel表

    excel设置打印区域 Today, we'll look at a time-saving Table trick that you might not know about. See how to ...

  2. excel自动筛选_在Excel自动筛选器中隐藏箭头

    excel自动筛选 When you turn on the filter in an Excel worksheet list, or if you create a named Excel tab ...

  3. excel自动筛选_在Excel中按选择自动筛选

    excel自动筛选 In Excel 2003, you can add a couple of buttons to the toolbar to make it easy to filter a ...

  4. excel 溢出 修复_修复Excel条件格式重复规则

    excel 溢出 修复 Conditional formatting is a great way to highlight specific data, but did you know that ...

  5. excel 拖动滚动条_使用Excel滚动条修剪圣诞树

    excel 拖动滚动条 An Excel scroll bar can be used for practical (and sometimes boring) things, like testin ...

  6. lisp倒入excel数据画图_将excel数据导入CAD画图的方法

    将 EXCEL 的数据导入 CAD 里绘图的方法 这是用 CAD 的 VBA ( cad 里的 lisp 功能也可以实现)的方法.此例是要完成如何在 CAD 中画出如下图 所示的坐标的图形-- 3D ...

  7. excel 魔法卡片_在Excel中制作情人节卡片

    excel 魔法卡片 Yes, it's Valentine's Day today, and if you were too busy to buy your sweetie a card yest ...

  8. excel文件修复_修复Excel文件

    excel文件修复 If you're having problems with an Excel file, using the built in repair feature might fix ...

  9. 如何用python打印田字格_如何用 3D 打印一双顶级跑鞋回形针

    马拉松赛场上的跑鞋五光十色,除了美观之外,它们还有一个重要作用:保护运动员不受伤害. 跑步时,从脚碰到地面开始会受到地面的反作用力.从着陆的减速到随着脚步推蹬过程的加速,这一过程中脚和地面的压力会达到 ...

  10. html 设置横向打印,电脑打印怎么横向打印出来_打印机设置横向打印的图文教程...

    打印机是办公室人员经常用来打印文档的设备,其中有些时候我们是需要设置横向打印的,但很多小伙伴可能不太清楚电脑打印怎么横向打印出来,所以对此今天本文为大家整理的就是关于打印机设置横向打印的图文教程. 图 ...

最新文章

  1. linux内核设备管理典型算法,linux内核物理存储空间管理有哪些常用算法
  2. 值得收藏:一份非常完整的 MySQL 规范
  3. [转]Oracle 执行计划(Explain Plan) 说明
  4. mysql tomcat idea操作_IntelliJ IDEA + Tomcat + RestFul + Mysql打造属于自己的服务器
  5. select、poll、epoll之间的区别
  6. k8s服务网关ambassador部署
  7. 在域驱动设计中使用状态模式
  8. Java中的Math类和日期类详解
  9. 搜索——二分搜索实现及细节
  10. xshell5 Xshell6 商业版的破解版
  11. DHI Mike 后处理工具——污染带面积、长度、宽度统计工具
  12. php梦网科技短信平台手机短信验证功能实现
  13. js获取本地文件(图片、word文档等)并获取其Base64化的编码,可用于本地文件上传至服务器
  14. 基于堡垒主机概念的运维审计系统
  15. 期货商品技术分析(期货市场技术分析)
  16. 网页被劫持跳转怎么办?发布网修复方法
  17. 最全的博客、网站提交入口(备用)
  18. 服务器例行维护是什么,端游公告丨8月11日服务器例行维护,1314绑点、随心染匣送送送...
  19. 【项目二、蜂巢检测项目】一、串讲各类经典的卷积网络:InceptionV1-V4、ResNetV1-V2、MobileNetV1-V3、ShuffleNetV1-V2、ResNeXt、Xception
  20. 视频教程-MATLAB与VB接口-Matlab

热门文章

  1. 【Matlab】结构在傅里叶展开下的周期荷载响应——文末附源码
  2. windows 10 python 3.7.9 install rosbag
  3. GTSAM中ISAM2和IncrementalFixedLagSmoother说明
  4. UE、UI、 IA和IxD傻傻分不清
  5. 小程序读取excel表格数据,并存储到云数据库
  6. Scipy.sparse中coo_matrix、csc_matrix、csr_matrix、lil_matrix区别与特点
  7. VL813-Q7威锋一出四HUB芯片方案
  8. Python入门教学
  9. 腾讯正式推出密码保护卡,貌似对火狐用户重视不够
  10. 舒伯特小夜曲(钢琴版)