Excuse me if I am asking already handled problem. I am trying to automate the invoicing of our company. We have an excel workbook with all the information about the clients, monthly payments and etc. I ve made the system and it works great. I even sent email with specific text and the invoice attached. The problem comes when multiple users are using the system, so the invoice numbers duplicate. Invoice number is stored in the excel workbook and after every invoice it becomes + 1.
The system works like this: Login form - login with username. The macro copies from the master table/modified protected/ only the info for the users clients and paste it into new wb template. The user checks the info, approves it and clicks send button. Then the macro make the invoices using the number from the first wb and send the email to the client. Do you have any tips how to protect the invoice number cell when someone is using the macro? I was thinking of making a list of users and when someone logs in his variable becomes 1, so if the sum of all users is greater than 1 you cant issue an invoice. But thats lame. Hope there is a way like- when busy ..... But how can user 2 know that user1 is issuing. Appreciate if you can help.