Part of a Workbook I have is trying to indicate which months (the sheetlist) are visible and have no open cases. I also need to know which sheets are hidden already, or have Open cases. There are other worksheets in the Workbook than those listed.
I have a list of worksheets on a different worksheet which has been set a defined name of "Hidden_Sheetlist". Some of these are Hidden, and the visibility status can change. I'd like a loop that checks whether each worksheet on the list is visible (AND if Open Cases=0) and, if so, enters a "1" (for example) in the corresponding column (which is 2 columns over). If it's not visible (OR if Open cases >0), a "0" is entered in the third column.
"Hidden_Sheetlist" is the first column
"Open_Cases_Total" is the second
"Open_Cases_Output" is the third
"Hid_top_Row" is a formula that tells me what the first row in the named range is
"Hid_Sheets_List" is the name for all three columns (AK22:AM34)
I've tried a few different things, none of which have been particularly successful. Closest 2 attempts I got is shown below, but I got a Type Mismatch error - so suspect I wasn't actually that close
The highlighted section is where I got the Type Mismatch (which, I reckon, is to do with the way I've defined 'ws')
Any corrections, or suggestions, would be welcomed.
I have a list of worksheets on a different worksheet which has been set a defined name of "Hidden_Sheetlist". Some of these are Hidden, and the visibility status can change. I'd like a loop that checks whether each worksheet on the list is visible (AND if Open Cases=0) and, if so, enters a "1" (for example) in the corresponding column (which is 2 columns over). If it's not visible (OR if Open cases >0), a "0" is entered in the third column.
"Hidden_Sheetlist" is the first column
"Open_Cases_Total" is the second
"Open_Cases_Output" is the third
"Hid_top_Row" is a formula that tells me what the first row in the named range is
"Hid_Sheets_List" is the name for all three columns (AK22:AM34)
I've tried a few different things, none of which have been particularly successful. Closest 2 attempts I got is shown below, but I got a Type Mismatch error - so suspect I wasn't actually that close
The highlighted section is where I got the Type Mismatch (which, I reckon, is to do with the way I've defined 'ws')
Any corrections, or suggestions, would be welcomed.