Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to create a code that will produce the following results.
First the user will need to provide basic information. Job quantity First Piece Group size Job Number The "Group Size" breaks the "Job Quantity" up into group size chucks. For example if the "Job Quantity" is 14524 and the "Group Size" is 3000 we would get four groups of 3000 and one group of 2524 Example 1 Job Quantity = 14524 First Piece = 1 Group Size = 3000 Job Number = A12345 Code will produce: A B C D E GroupID START END QTY Group BAR CODE S0001 1 3000 3000 *S1001+1+3000+A12345* S0002 3001 6000 3000 *S1002+3001+3000+A12345* S0003 6001 9000 3000 *S1003+6001+3000+A12345* S0004 9001 12000 3000 *S1004+9001+3000+A12345* S0005 12001 14524 2524 *S1005+12001+2524+A12345* As you can see a "*" is added at the beginning and end in column E. Also everything is separated by a "+" sign. This format is import because it will be read by a scanner. Example 2 In this example the first piece 2541 Job Quantity = 18233 First Piece = 2541 Group Size = 2500 Job Number = A12345 Code will produce: A B C D E GroupID START END QTY Group BAR CODE S0001 2541 5040 2500 *S1001+2541+2500+B12345* S0002 5041 7540 2500 *S1002+5041+2500+B12345* S0003 7541 10040 2500 *S1003+7541+2500+B12345* S0004 10041 12540 2500 *S1004+10041+2500+B12345* S0005 12541 15040 2500 *S1005+12541+2500+B12345* S0006 15041 17540 2500 *S1006+15041+2500+B12345* S0007 17541 20040 2500 *S1007+17541+2500+B12345* S0008 20041 20773 733 *S1008+20041+733+B12345* Column E which is the Group Bar code should use the bar code font "CarolinaBar-B39-2.5-22x158x720" I hope I explained the right. Where do I start? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need VBA code for a custom function? | Excel Programming | |||
Custom Number Formats in Code | Excel Programming | |||
How can I see custom formula code? | Excel Worksheet Functions | |||
Custom dat & time code | Excel Discussion (Misc queries) | |||
Custom button, code placement | Excel Programming |