Hi,
I have some lengthy code in certain areas which right now I am just copy/pasting and changing the With Sheet1 to With Sheet2 and so forth. Is there any way to write a "With" statement that affects multiple worksheets at once? Here's my (nonworking) attempt at it (if you replace every instance of "SheetnumeRo" with "Sheet2" or the like, the code functions properly):
Ideally, this should just run for sheets 2-6, but obviously that doesn't happen. I also tried "With Sheet1 And Sheet2 And Sheet3...etc" but that doesn't work either. Is there any way to do this besides just copy/pasting this code over and over again for every worksheet?![]()
Please Login or Register to view this content.
Bookmarks