Home > Topics > Excel > body text

What is the automatic numbering function for excel printing times?

coldplay.xixi
Release: 2020-06-23 13:11:17
Original
7675 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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 [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!