Good day to all
Although a member for some time it is quite a while since I last posted so here goes, again.
I have a workbook comprising over a hundred sheets. Each sheet holds data for one week consisting of:- In row 4 names of employees, anything between 50 - 70 tradesmen, in column A names of current projects.
Essentially then,a grid into which, each week, is entered the hours worked by each trades person on each project/s.
To make data entry easier and less prone to error, there is a ComboBox (Activex) on the sheet, from where the entry name can be selected for which hours are to be entered and the attached code hides all other columns except the one chosen. When data entry is complete for that person there is a simple command button which unhides all columns.
The list fill range is a vertical list of all employees populated by cell references to row 4.
Occasionally it will be necessary to delete names when people leave our employment etc and when this is done, ie a cell in row 4 is cleared or deleted, the ComboBox column hide code fires and all the columns in the grid are hidden. One then has to click the command button to reveal all he columns again. Time consuming after several alterations.
My question is can I and if so how, stop this happening.
You will probably by suspect that I am pretty much an amateur at VBA code and I am sure there is probably a much easier, faster and more efficient way to set up what I have tried to describe above. However if I can just stop the ComboBox event firing every time I delete or change a cell in the names row I will be delighted.
regards to all
Malcolm
Although a member for some time it is quite a while since I last posted so here goes, again.
I have a workbook comprising over a hundred sheets. Each sheet holds data for one week consisting of:- In row 4 names of employees, anything between 50 - 70 tradesmen, in column A names of current projects.
Essentially then,a grid into which, each week, is entered the hours worked by each trades person on each project/s.
To make data entry easier and less prone to error, there is a ComboBox (Activex) on the sheet, from where the entry name can be selected for which hours are to be entered and the attached code hides all other columns except the one chosen. When data entry is complete for that person there is a simple command button which unhides all columns.
The list fill range is a vertical list of all employees populated by cell references to row 4.
Occasionally it will be necessary to delete names when people leave our employment etc and when this is done, ie a cell in row 4 is cleared or deleted, the ComboBox column hide code fires and all the columns in the grid are hidden. One then has to click the command button to reveal all he columns again. Time consuming after several alterations.
My question is can I and if so how, stop this happening.
You will probably by suspect that I am pretty much an amateur at VBA code and I am sure there is probably a much easier, faster and more efficient way to set up what I have tried to describe above. However if I can just stop the ComboBox event firing every time I delete or change a cell in the names row I will be delighted.
regards to all
Malcolm