In excel how do I increase a number in a cell by 1 after I print?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I use excel to print blank invoices for my company and i want that prints on
the invoice to go to the next higher number after everytime i print. any
suggestions?
 
I need it in basic english because i have never used visual basic before.
 
Ron may be Dutch, but his website is in English.

If not familiar with VBA and macros, see David McRitchie's site for more on
"getting started".

http://www.mvps.org/dmcritchie/excel/getstarted.htm

In the meantime..........

First...create a backup copy of your original workbook.

To create a General Module, hit ALT + F11 to open the Visual Basic Editor.

Hit CRTL + r to open Project Explorer.

Find your workbook/project and select it.

Right-click and Insert>Module. Paste Ron's code in there. Save the
workbook and hit ALT + Q to return to your workbook.

Run or edit the macro by going to Tool>Macro>Macros.

You can also assign this macro to a button or a shortcut key combo.


Gord
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top