Hi guys I need your help again,
I'm creating a sort of Time Sheet, and I need to have for each day per Month a Toggle Button on the sheet. (actually they are 7 buttons for each day).
So I created in Total 217 Buttons, it took me some time to order and resize them and of course to give each one an own name.
I created them as an ActiveX element as I couldn't see in the Form Controls a ToggleButton.
Anyway everything is finish now.
Now I need that each Button do more or less the same except that they write a value in 7 cell in each row (so every button have it's own cell)
I created a module which do the job, but now I don't want to fill the Page code for the specific sheet with 217 Subs for each button
is there a way to have like one sub for all buttons?? or a least one sub for each category of button?
(again I have 7 Buttons: 1x Holidays, 1xVacation, 1xCompany Business, 1x Regular Day Off, 1xSickness, 1xUnpaid and 1xOther)
I want to be able to click for each day if needed one of these option. and at the end of the month I'll have a calculation of the nbr of days of those 7 categories)
If there is no possibility to have one Sub for all buttons or one sub for each category, is there a possibility to get the name of the clicked button, so i can call one module at least?? Unfortunately Application.Caller doesn't work with activex elements.
I hope you didn't got confuse. I have attached my File so far, please ignore the "Summary" sheet and the "Configuration" Sheet. Just the "Jan" sheet.
thanks alot
Bookmarks