Hello,
My goal is to shade cells that represent certain months.
For example, within Excel if A2 through A17 shows
1,2,3,4,5,6,7,8,9,10,11,12, 5,6, 8,2, (numbers represent the month number i.e. 1 for Jan.)
and b1 through b12 shows
Jan, Feb, Mar,....Dec
I want to shade 5 columns starting with the month that corresponds to the months number shown in column A. For instance, in A1 the number 1 would shade from January through May (5 columns), and A2 with the number 2 would shade columns February through June, etc.
I tried to create a macro that would do this, yet it does not work for the numbers 7,8,9,10,11, and 12 representing July through Dec.
The below email address is where I placed a sample of the excel file with the current code
The excel file shown at the above address actually shades a a number of columns that based on a lead time. To make it easier, however above I just am assuming a consistent 5 columns.
I don't necessarily have to use the code that I created if there is an easier method.
I appreciate any assistance.
Thanks, Dyana
My goal is to shade cells that represent certain months.
For example, within Excel if A2 through A17 shows
1,2,3,4,5,6,7,8,9,10,11,12, 5,6, 8,2, (numbers represent the month number i.e. 1 for Jan.)
and b1 through b12 shows
Jan, Feb, Mar,....Dec
I want to shade 5 columns starting with the month that corresponds to the months number shown in column A. For instance, in A1 the number 1 would shade from January through May (5 columns), and A2 with the number 2 would shade columns February through June, etc.
I tried to create a macro that would do this, yet it does not work for the numbers 7,8,9,10,11, and 12 representing July through Dec.
The below email address is where I placed a sample of the excel file with the current code
The excel file shown at the above address actually shades a a number of columns that based on a lead time. To make it easier, however above I just am assuming a consistent 5 columns.
I don't necessarily have to use the code that I created if there is an easier method.
I appreciate any assistance.
Thanks, Dyana