you'd need to use a before save macro. Something like the macro at the end - but it would run on every save, which may not be what you want. I use a macro that gets the invoice # and saves (it does several things). I added a button to the ribbon that calls a macro that runs several macros: Sub FinalizeInvoice() CreateInvoiceNumber CopyToExcel FinalCleanup ' this does the save End Sub This is an automated macro - but it will run every time the file is saved. Private WithEvents App As Word.Application Private Sub Document_Open() Set App = Word.Application… Read more »
One of the best ways to prevent invoice numbering errors is by running a monitoring tool that constantly checks for duplicates and so helps you catch errors before their invoices are finalized. If you use the sequencing system provided by your accounting software, the issue of duplicate or missing invoice numbers is avoided entirely – if not, and an error does occur, your software should have a tool to help you locate and solve it.
Basically, the only difference is that we now maintain a VBA.Collection, and this time we do make use of the UniqueKeyVariant parameter, using it as a key to locate the previously assigned number. If we don’t find it, we add to the VBA.Collection. The SQL to use those 2 functions remains identical. The downside is that if the query generates millions worth of rows, the memory may run out due to a large VBA.Collection. However, if a form is bound to that large dataset, it will likely have several other problems anyway so VBA.Collection should not be a problem for forms that loads a few hundred rows. The other downside is that VBA.Collection will persist indefinitely even long after the query has “finished.” Back to form example, you might need to remember to call the ResetRowNumber() function on a form’s close to ensure that you dispose of the VBA.Collection and free up the memory.
I need to be able to automatically number pages with a preset. Coreldraw can already do what I need using the PageNumbering macro but I have to enter the individual settings for each template every time. I simply want the included PageNumbering macro but with the option to save 5 presets. If possible I would like the option of saving the presets to a file that can be shared with other workstations so I don't have to manually recreate.
There are many types of machines printers used to number Carbonless forms. One style is a letter press, another is a pneumatic numbering head which uses air pressure do drive a numbering head and crash imprint the number on the top sheet transferring the number to the other sheets. For example, if you were numbering a 2 part carbonless form you would have a black or red number on the top sheet and a crashed number on the second sheet. The image on the second sheet would appear black no matter what ink was on the top sheet as the carbonless paper transfers the image in black.
Set up a matrix in Excel, one column for each ticket position (stack) and one row for each sheet, plus one for field names. Fill the first column down in consecutive order, then the second, starting where the first column leaves off, and so on. Afet a couple of columns are filled, you can auto fill across the rows, too, so the whole thing takes only a couple of minutes. Name the stacks and use a different field for each position on the page when you do the merge. The trick is to set up using a custom file for the total number of tickets or whatever, divided into the correct number of stacks and sheets. sequentially numbering in coreldraw
×