Hello everyone,
I have a workbook with around 50 sheets or so. I have code written to hide/unhide sheets based on userform inputs. I am stuck trying to write the code for excel to number the visible pages 1, 2, 3...etc. in cells A9 in each sheet. The visible sheets change and are different for each task at hand. Does anyone know how I would write this? I would think it would be a loop and if visible logic but cannot get code to work right for me.
Thanks!
I have a workbook with around 50 sheets or so. I have code written to hide/unhide sheets based on userform inputs. I am stuck trying to write the code for excel to number the visible pages 1, 2, 3...etc. in cells A9 in each sheet. The visible sheets change and are different for each task at hand. Does anyone know how I would write this? I would think it would be a loop and if visible logic but cannot get code to work right for me.
Thanks!