Home  >  Article  >  Topics  >  What is the automatic numbering function for excel printing times?

What is the automatic numbering function for excel printing times?

coldplay.xixi
coldplay.xixiOriginal
2020-06-23 13:11:177823browse

What is the automatic numbering function for excel printing times?

The first step, in excel, press ALT F11, a window will pop up

The second step, in the pop-up window, select Insert module in the menu

The third step, copy and paste the following

Sub dayin()
dim n as integer
n=inputbox("打印次数") *1
for i=1 to n
activesheet.PrintOut Copies:=1
[H2]= "NO:" & application.text(i,"0000000000")'这里是H2,改成自己需要的单元格,后面是数字格式,根据需要修改
next
End Sub

code, and then close the window

The fourth step, return to excel and click OK, enter the number of copies to print

Recommended tutorial: "excel basic tutorial"

The above is the detailed content of What is the automatic numbering function for excel printing times?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn