Skip to main content

Conas iliomad cóipeanna a phriontáil le huimhreacha leathanaigh seicheamh?

An ndearna tú iarracht riamh cóipeanna iolracha de bhileog amháin a phriontáil le huimhreacha leathanaigh seicheamh? Ciallaíonn sé sin 10 gcóip de bhileog amháin a phriontáil, agus an Cill A1 a líonadh sa chéad chóip le 1, sa 001ú cóip le 2…, agus sa 002ú cóip le 10. In Excel, níl aon ghné ionsuite ann ar féidir a réiteach an post seo, ach san alt seo, tugaim isteach macra-chód chun cabhrú leat iliomad cóipeanna a phriontáil go tapa le huimhir leathanaigh seicheamh in Excel.

Priontáil cóipeanna le huimhreacha difriúla de réir chód VBA


mboilgeog cheart gorm saighead Priontáil cóipeanna le huimhreacha difriúla de réir chód VBA

Seo a leanas céimeanna chun cóipeanna iolracha de bhileog amháin a phriontáil le huimhreacha seicheamh de réir chód VBA

1. Cumasaigh an bhileog a theastaíonn uait a phriontáil, agus brúigh eochracha Alt + F11 chun na Microsoft Visual Basic d’Fheidhmchláir fhuinneog.

2. cliceáil Ionsáigh > Modúil, agus greamaigh thíos an cód leis an Modúil script. Féach an pictiúr:

VBA: Priontáil cóipeanna le huimhreacha leathanaigh seicheamh.

Sub PrintCopiesWithNumbers()
'UpdatebyEntendoffice20161031
    Dim i As Integer
    Application.ScreenUpdating = False
    For i = 1 To 10
        Range("A1").Value = "'00" & i
       ActiveSheet.PrintOut
    Next i
    Application.ScreenUpdating = True
    MsgBox "Totally print" & (i - 1) &"copies", vbInformation, "Kutools for Excel"
End Sub

cóip chlóite doc le huimhir 1

nótaí: sa chód, A1 an cill is mian leat an uimhir seicheamh a chur, 1 Chun 10 léiríonn sé 10 gcóip a phriontáil, agus "'00" & I. is í an fhormáid seicheamh, is féidir leat iad a athrú de réir mar is gá duit.

3. Brúigh F5 eochair chun an cód a rith, agus tagann dialóg amach chun a mheabhrú duit 10 gcóip a phriontáil. Cliceáil OK chun an dialóg a dhúnadh, ansin tá a uimhir seicheamh féin ag gach cóip chlóite.
cóip chlóite doc le huimhir 2

Uirlisí Táirgiúlachta Oifige is Fearr

🤖 Kutools AI Aide: anailís sonraí a réabhlóidiú bunaithe ar: Forghníomhú Chliste   |  Gin Cód  |  Cruthaigh Foirmlí Saincheaptha  |  Anailís a dhéanamh ar Sonraí agus Cairteacha a Ghin  |  Feidhmeanna Kutools a agairt...
Gnéithe Coitianta: Faigh, Aibhsigh nó Aithnigh Dúblaigh   |  Scrios Sraitheanna Bána   |  Comhcheangail Colúin nó Cealla gan Sonraí a Chailleadh   |   Babhta gan Foirmle ...
Cuardaigh Super: Ilchritéir VLookup    VLookup Illuachanna  |   VLookup Trasna Ilbhileoga   |   Amharc doiléir ....
Liosta anuas Casta: Go tapa Cruthaigh Liosta Anuas   |  Liosta anuas Cleithiúnach   |  Liosta Buail Isteach Ilroghnacha ....
Bainisteoir Colún: Cuir Líon Sonrach Colún leis  |  Colúin Bog  |  Scoránaigh Stádas Infheictheachta na gColún Ceilte  |  Déan comparáid idir Raonta & Colúin ...
Gnéithe Réadmhaoin: Fócas Eangaí   |  Amharc Dearaidh   |   Barra Mór na Foirmle    Leabhar Oibre & Bainisteoir Bileog   |  Leabharlann Acmhainní (Uaththéacs)   |  Piocálaí Dáta   |  Comhcheangail Bileoga Oibre   |  Criptigh/Díchriptigh Cealla    Seol Ríomhphost trí Liosta   |  Scagaire Super   |   Scagaire Speisialta (scagaire trom/iodálach/stailc tríd...) ...
Barr 15 Uirlisí12 Téacs uirlisí (Cuir Téacs, Bain Carachtair,...)   |   50 + Cairt cineálacha (Cairt Gantt,...)   |   40+ Praiticiúil Foirmlí (Ríomh aois bunaithe ar lá breithe,...)   |   19 Insertion uirlisí (Cuir isteach Cód QR, Ionsáigh Pictiúr ón gCosán,...)   |   12 Tiontú uirlisí (Uimhreacha le Focail, Comhshó Airgeadra,...)   |   7 Cumaisc & Scoilt uirlisí (Sraitheanna Comhcheangail Casta, Cealla Scoilt,...)   |   ... agus eile

Supercharge Do Scileanna Excel le Kutools le haghaidh Excel, agus Éifeachtúlacht Taithí Cosúil Ná Roimhe. Kutools le haghaidh Excel Tairiscintí Níos mó ná 300 Ardghnéithe chun Táirgiúlacht a Treisiú agus Sábháil Am.  Cliceáil anseo chun an ghné is mó a theastaíonn uait a fháil ...

Tuairisc


Tugann Tab Oifige comhéadan Tabbed chuig Office, agus Déan Do Obair i bhfad Níos Éasca

  • Cumasaigh eagarthóireacht agus léamh tabbed i Word, Excel, PowerPoint, Foilsitheoir, Rochtain, Visio agus Tionscadal.
  • Oscail agus cruthaigh cáipéisí iolracha i gcluaisíní nua den fhuinneog chéanna, seachas i bhfuinneoga nua.
  • Méadaíonn do tháirgiúlacht 50%, agus laghdaíonn sé na céadta cad a tharlaíonn nuair luch duit gach lá!
Comments (17)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I NEED TO PRINT PAGE 1 TWICE, PAGE 2 TWICE PAGE 3 TWICE AND SO ON. IS THERE A WAY TO ADD TO THIS VBA CODE TO DO THAT? IN OTHER WORDS I NEED TO PRINT EACH PAGE IN THE SEQUENCE 2 TIMES BACK TO BACK 1,1 2,2 3,3 4,4 AND SO ON .
THANK YOU FOR ANY HELP
This comment was minimized by the moderator on the site
I need my starting number to be 7 digits ( 2223675 )
This comment was minimized by the moderator on the site
I am working on a checklist. Column C and Column M are my columns with sequence numbers in it. I want them to update everytime I print and continue all the way up to 950. So one sheet contains 1 - 60. I would need to print 16 pages once I figure out how to get those columns C10:C39 and M10:M39 to continue updating with each print. Can you assist?
This comment was minimized by the moderator on the site
I'm using this with MS word, and when I run it, a message box pops up " Compile error, sub or function not defined "
This comment was minimized by the moderator on the site
Hi, Fish, this code is avaliable in MS Excel, not Word.
This comment was minimized by the moderator on the site
how can I saved the sequence of copies in one pdf file? Thanks! 
This comment was minimized by the moderator on the site
Thanks, very helpful.But i need to print 2 sequential number on 1 page. Can help?
This comment was minimized by the moderator on the site
Sorry, I do not understand your requerments.
This comment was minimized by the moderator on the site
thanks !! its helpful and my work is done :)
This comment was minimized by the moderator on the site
when i am pressing f5 nothing is happening what to do?
This comment was minimized by the moderator on the site
Go to the ribbon of the Microsoft Visual Basic Applications windown, and click Run.
This comment was minimized by the moderator on the site
go to Run menu item and manually click on run .
This comment was minimized by the moderator on the site
Hi,
I was looking for this kind of code butc with a twist..
When printing 10 copies it should say ot id how many it is.. Ex. 001 of 010 and so on..
Any help?
This comment was minimized by the moderator on the site
did you find any help on this? looking for the same
This comment was minimized by the moderator on the site
Sorry I have no idea.
This comment was minimized by the moderator on the site
What is sequence format refer
This comment was minimized by the moderator on the site
Hello, the sequence refer to the copies number.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations