I am trying to find the right way to encode a macro that goes through 12 sheets with specific names (Jan, Feb, ..., Dec). I thought there would be a good choice for each function, so I tried the following:
dim crntSht as worksheet
set crntsht=("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec")
for each crntsht in worksheets
.
.
.
end for
this clearly did not work, since I did not correctly define crntsht.
Can someone suggest a better way to carry all 12 sheets at once and skip all the other sheets in one book?
thanks
source
share