Hi. I have a workbook with 8 sheets. I have 5 sheets that are called WO1, WO2, WO3, WO4, WO5. I want to loop through these 5 sheets and look at a certain range of cells to see if there is a value in any of those cells. IF there is and there is not a value in the next cell over, i want it to prevent saving and pop up with a message box asking the user to fill in all required fields in the worksheet that is missing information. Here is an example of my current code:
I tried defining strSection and strCustSparePart as a range and i got an "Object variable or With block variable not set" error on either line with the Choose function.
When i leave it as is i get an error on the CountA lines saying "Application-defined or object defined error". This is most likely because i am trying to call a string variable as a range?
Any help is appreciated!
Bookmarks