I have a worksheet with multiple sheets. Some of these sheets contain similar data, which needs to be extracted.Intention was to have the following function in each sheet:Function isThisAValidSheet () as Boolean isThisAValidSheet = TrueEnd FunctionThe sheet would have other functions and subs as well, which would need to be called in case this function returned 'True'.In the modules, I now need to check all sheets one by one to see whether this function exists. And if it exists, then I need to call a whole lot of other functions and sub-routines in the same sheet. I am using something similar to the following code in one of the procedures:sub doThis()Dim wkSheet as WorksheetFor Each wkSheet In ActiveWorkbook.Worksheets doesWorkSheetHaveTheInformationRequired = wkSheet.isThisAValidSheet if doesWorkSheetHaveTheInformationRequired = True then wkSheet.exportWorkSheet '....Other Stuff Goes Here end ifNext wkSheetend subUnfortunately, as soon as I try to run this procedure, I get the the error "Compile Error: Method or data member not found" and the".isThisAValidSheet" highlighted in the 'doThis' sub above.Kindly advise.Thank you very much.