ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   VB Macro (https://www.excelbanter.com/excel-discussion-misc-queries/185161-vbulletin-macro.html)

Heather C[_2_]

VB Macro
 
I need some help writing a macro in visual basic. I'm tring to give an
invoice number to each new invoice. I don't want it to do it every time I
open the program though, I would like it to be done when I enter the customer
number into the field. I'm not quite sure how to do this.

Please Help!!

Dave Peterson

VB Macro
 
You may want to review JE McGimpsey's notes:
http://mcgimpsey.com/excel/udfs/sequentialnums.html

Personally, I wouldn't use the changing of a cell to grab a new number. I'd put
a button from the forms toolbar on the worksheet and force the user to click the
button when they wanted it.

Anything else would seem too much like magic <vbg.

Heather C wrote:

I need some help writing a macro in visual basic. I'm tring to give an
invoice number to each new invoice. I don't want it to do it every time I
open the program though, I would like it to be done when I enter the customer
number into the field. I'm not quite sure how to do this.

Please Help!!


--

Dave Peterson


All times are GMT +1. The time now is 01:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com