- ·上一篇教育:excel表格怎么让排序数字加一
- ·下一篇教育:excel表格作图怎么设置主次刻度
excel表格编码怎么取消自动递增
1.excel 打印自动增加编号
Sub AscendPrint()
dim Copies as integer,Index as integer
Copies=val(inputbox("打印份数","消息",1))
Index=val(getsetting("AscendPrint","Default","Index",1))
if Index<1 then Index=1
if Copies<1 then Copies=1
for i=1 to Copies
Index=Index+1
on error resume next
activesheet.cells(2,8)= "NO:" & application.text(Index,"0000000000")
if err.number then activesheet.cells(2,8).value= "NO:" & application.text(Index,"0000000000")
activesheet.PrintOut Copies:=1
doevents
next
savesetting "AscendPrint","Default","Index",Index
End Sub
更多的功能,可参见 百---宝。箱..V/1/0.0
评论内容只代表网友观点,与本站立场无关!
评论摘要(共 0 条,得分 0 分,平均 0 分)