拿到 excel 表格中的数据,要批量生成条码图片,有时会很繁琐。
本文介绍一种,无需复杂的编程,无须借助他人,简单几个步骤批量生成条码图形的方法。
首先,确认计算机上安装了条码控件,有很多可以实现这种功能的条码控件,本文以斐泰科技的
FitQR PLus Encoding ActiveX Control 为例,实现这种功能。
第一步:确认 Excel 文件中的数据,确定那一列的内容需生成条码,生成哪种条码
比如,如下图所示的Excel文件,其中的B2,B3,...... 为要生成条码的内容;每一行一个条码
生成的条码保存成 D列Cell中所指定的图形文件中。

Excel表格数据示例
第2步 使用记事本生成一个文本格式的脚本文件,内容如下,保存成 enc.vbs (注意后缀为 .vbs 不能是 .txt)
' we can pass the excel file name and worksheet as the parameter and using Wscript.Arguments to use it in the script
dim enc
dim filename
dim
本文介绍一种,无需复杂的编程,无须借助他人,简单几个步骤批量生成条码图形的方法。
首先,确认计算机上安装了条码控件,有很多可以实现这种功能的条码控件,本文以斐泰科技的
FitQR PLus Encoding ActiveX Control 为例,实现这种功能。
第一步:确认 Excel 文件中的数据,确定那一列的内容需生成条码,生成哪种条码
生成的条码保存成 D列Cell中所指定的图形文件中。
Excel表格数据示例
第2步 使用记事本生成一个文本格式的脚本文件,内容如下,保存成 enc.vbs (注意后缀为 .vbs 不能是 .txt)
' we can pass the excel file name and worksheet as the parameter and using Wscript.Arguments to use it in the script
dim enc
dim filename
dim
