Custom List via VBA with a twist

Momentman

Well-known Member
Joined
Jan 11, 2012
Messages
4,156
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Working on a shift roster. I have 8 items like this A,A,B,B,C,C,C,C. I want to fill all the days of the month with this list, the challenge is that the 1st day of the month could be any of the 8 items.

i want the user to select either A, B or C and select the occurrence of it and the first day of the month becomes that and from there the whole days of the months are autofilled

Excel 2010
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAG
1Alphabetinstance01-Jan-1402-Jan-1403-Jan-1404-Jan-1405-Jan-1406-Jan-1407-Jan-1408-Jan-1409-Jan-1410-Jan-1411-Jan-1412-Jan-1413-Jan-1414-Jan-1415-Jan-1416-Jan-1417-Jan-1418-Jan-1419-Jan-1420-Jan-1421-Jan-1422-Jan-1423-Jan-1424-Jan-1425-Jan-1426-Jan-1427-Jan-1428-Jan-1429-Jan-1430-Jan-1431-Jan-14
2A1AABBCCCCAABBCCCCAABBCCCCAABBCCC
3C3CCAABBCCCCAABBCCCCAABBCCCCAABBC

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet5
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,215,757
Messages
6,126,694
Members
449,331
Latest member
smckenzie2016

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top