Short version: I need help figuring out a way to search for text within a huge number of textboxes.
Long version: I've created an excell file that uses more textboxes and VBA than actual spreadsheet functionality for use a shift log by one of the departments at my company.
I have VBA scripts set up to automatically create new tabs for each day as needed, and the tabs show up ready to use with textboxes where employees types notes about their shift that will be read by coworkers on other shifts. The tabs are automatically named with the date in the format ddd-mm-yy
There are also scripts set up that automatically delete tabs that are more than 30 days old beforeclose.
With 30 tabs and 6 textboxes per tab, there are 180 textboxes. I need a way to allow my users to search for any text string they enter, have it search every textbox on every tab, and return a list of tabs that contain that text.
I'm good with all of the forms and user interface stuff, but I have yet to find a way to loop through every textbox in the file and check for matching text. I should also point out that they won't be searching for the full contents of the textboxes. A user might make an entry that says, "John Doe, card number 500000, was in today complaining about xyz. I told offered him abc as compensation." I need another user to be able to search for "500000" or "Doe" and find out what tabs (if any) have that text somewhere in a textbox.
Guidance?
Long version: I've created an excell file that uses more textboxes and VBA than actual spreadsheet functionality for use a shift log by one of the departments at my company.
I have VBA scripts set up to automatically create new tabs for each day as needed, and the tabs show up ready to use with textboxes where employees types notes about their shift that will be read by coworkers on other shifts. The tabs are automatically named with the date in the format ddd-mm-yy
There are also scripts set up that automatically delete tabs that are more than 30 days old beforeclose.
With 30 tabs and 6 textboxes per tab, there are 180 textboxes. I need a way to allow my users to search for any text string they enter, have it search every textbox on every tab, and return a list of tabs that contain that text.
I'm good with all of the forms and user interface stuff, but I have yet to find a way to loop through every textbox in the file and check for matching text. I should also point out that they won't be searching for the full contents of the textboxes. A user might make an entry that says, "John Doe, card number 500000, was in today complaining about xyz. I told offered him abc as compensation." I need another user to be able to search for "500000" or "Doe" and find out what tabs (if any) have that text somewhere in a textbox.
Guidance?