Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50222

VBA store sheetnames in a array

$
0
0
In the question below I made a consolidation (for the whole code see the attached file).

The question is to take just a couple of sheetnames to do the job.

I made the code below to achieve that goal (and it's working well).

Code:

If .Name = "January" Or .Name = "February" Or .Name = "March" Or .Name = "April" Or .Name = "May" Or .Name = "June" Or .Name = "July" Or .Name = "August" Or .Name = "September" Or .Name = "October" Or .Name = "November" Or .Name = "December" Then
I think there must be an easier way to code this line.

Who can and is willing to help me with this line?

If you have question or comments, just ask or comment.

http://www.excelforum.com/excel-gene...32#post3327932

Viewing all articles
Browse latest Browse all 50222

Trending Articles