(Excel 2010)
Its been a number of years since ive posted, but the last time I did you all helped out alot, and we havent had the need to make any changes until now.
We are a Fire Alarm Contractor and have a WB called "Project Flow Log" which lists all our Active Projects on its own Worksheet and Archive Projects on their respective archive by year worksheets.
This Workbook is shared by 12+ persons, (Sales, Design & Project Managers) so its actively used. Each row is a distinct project, and data extends to Column B:AU. Currently we have 450+ active projects and typically 10 new projects are added each week. The project are numbered sequentially by year, ex: 18-1000, 18-1001, 18-1002, etc....
Typically, when a new project is sold, the Salesman opens the workbook and enters data in the first or so 8-10 cells of the respective project row. However, recently in the last few months weve had 2 issue that have become problematic..
1- Often our salesman get lazy and dont enter all data needed,
2- Saleman forget to add a sold project, then to cover their a$$, enter a "Sold Date" from a few weeks prior and not the date they actually enter in the data like they are supposed to.
So I'm creating a UserForm that is opened by a simple button, and that UserForm will have those 8-10 required text boxes that must be filled in and upon clicking the submit button it will then populate their respective cells. In addition, the Sold Date cell will now be updated based on the date the UserForm was Submitted/completed.
So what i want to do is permanently Lock/Protect columns B:O (Sales Data columns). Then when the "New Project" button is clicked, the UserForm opens, the salesman enters data in those 8-10 text boxes and then when the UserForms "Submit" button is clicked:
1- Unlock Columns B:O (without prompting for a passcode, meaning can the passcode be written into the VBA code)
2- UserForm then populates their respective cells
3- Relock Columns B:O (again without promting for a passcode)
This way, these cells cant be manually overwritten, and if they need to be, i will do it manually, since Im the keyholder.
I can create the UserForm, I can link the Textboxes to the appropriate cells, but i dont know how to include the VBA Language to unlock and lock the columns.
Any help is appreciated.
Thanks
BV
Its been a number of years since ive posted, but the last time I did you all helped out alot, and we havent had the need to make any changes until now.
We are a Fire Alarm Contractor and have a WB called "Project Flow Log" which lists all our Active Projects on its own Worksheet and Archive Projects on their respective archive by year worksheets.
This Workbook is shared by 12+ persons, (Sales, Design & Project Managers) so its actively used. Each row is a distinct project, and data extends to Column B:AU. Currently we have 450+ active projects and typically 10 new projects are added each week. The project are numbered sequentially by year, ex: 18-1000, 18-1001, 18-1002, etc....
Typically, when a new project is sold, the Salesman opens the workbook and enters data in the first or so 8-10 cells of the respective project row. However, recently in the last few months weve had 2 issue that have become problematic..
1- Often our salesman get lazy and dont enter all data needed,
2- Saleman forget to add a sold project, then to cover their a$$, enter a "Sold Date" from a few weeks prior and not the date they actually enter in the data like they are supposed to.
So I'm creating a UserForm that is opened by a simple button, and that UserForm will have those 8-10 required text boxes that must be filled in and upon clicking the submit button it will then populate their respective cells. In addition, the Sold Date cell will now be updated based on the date the UserForm was Submitted/completed.
So what i want to do is permanently Lock/Protect columns B:O (Sales Data columns). Then when the "New Project" button is clicked, the UserForm opens, the salesman enters data in those 8-10 text boxes and then when the UserForms "Submit" button is clicked:
1- Unlock Columns B:O (without prompting for a passcode, meaning can the passcode be written into the VBA code)
2- UserForm then populates their respective cells
3- Relock Columns B:O (again without promting for a passcode)
This way, these cells cant be manually overwritten, and if they need to be, i will do it manually, since Im the keyholder.
I can create the UserForm, I can link the Textboxes to the appropriate cells, but i dont know how to include the VBA Language to unlock and lock the columns.
Any help is appreciated.
Thanks
BV