J
jasonsweeney
Employees enter information into a user form. Once done, they press a
command button that launches a macro that populates cells in a
worksheet with the following information in Row "1" to Row n of Columns
"A" through "E" for each individual entry:
A...............B...................C.....................D
..............................................E
DATE........CLASS-NUM....PART-NAME.....DESCRIPTION OF
PROBLEM.....DOWN-TIME
1 08/09/05 0934043 Widget A faulty wiring
02:40:00
2 08/09/05 0934043 Widget A cracked casing
00:05:00
Etc.
Often, in a given day, a number of entries will have the same
Class-Num. At the end of the day, we want a userform to list in a
list-box (?) for us, block entries that look like, for example, the
following (in all-caps), in reference to a whole family of entries that
share a common class-num:
"[4:31:00] WIDGET A (0934043): FAULTY WIRING (02:45:00); CRACKED CASING
(00:05:00); FAULTY WIRING (00:13:50); UNKNOWN ERROR (01:11:00); SEEMS TO
NOT FIT NEW HEAD ASSEMBLY (00:30:00)"
"[2:00:00] WIDGET B (0029777): SECOND SHIPMENT OF WRONG SKU (01:50:00);
TRAINING OF NEW OPERATOR (00:10:00)"
Obviously, the information is listed in the order: Total down-time,
name of part, class number, description, and finally individual down
time as to each individual entry.
I have a simple code that populates the listbox with all entries that
were made on the relevant date:
_________________
For i = 1 To 10005
If Sheet1.Cells(i, "A").Value = todays_date Then
entry.ListBox_todaymats.AddItem Sheet1.Cells(i, "B").Value & "
" & Cells(i, "C").Value & " " & Cells(i, "D").Value & " " &
Cells(i, "E").Value
End If
next
_________________
But I am stuck on hwo to proceed. I need Excel to:
(1) First only look at entries made on today's date (above code does
this);
(2) Next look only at entries made today that have common class-num
(3) Then, group all common class-nums together and display infor as
shown above;
(4) Then, repeat step 3 for other class-nums entered today;
(5) and finally, open a word document and paste all the data into a
word document in the same manner as referenced above.
command button that launches a macro that populates cells in a
worksheet with the following information in Row "1" to Row n of Columns
"A" through "E" for each individual entry:
A...............B...................C.....................D
..............................................E
DATE........CLASS-NUM....PART-NAME.....DESCRIPTION OF
PROBLEM.....DOWN-TIME
1 08/09/05 0934043 Widget A faulty wiring
02:40:00
2 08/09/05 0934043 Widget A cracked casing
00:05:00
Etc.
Often, in a given day, a number of entries will have the same
Class-Num. At the end of the day, we want a userform to list in a
list-box (?) for us, block entries that look like, for example, the
following (in all-caps), in reference to a whole family of entries that
share a common class-num:
"[4:31:00] WIDGET A (0934043): FAULTY WIRING (02:45:00); CRACKED CASING
(00:05:00); FAULTY WIRING (00:13:50); UNKNOWN ERROR (01:11:00); SEEMS TO
NOT FIT NEW HEAD ASSEMBLY (00:30:00)"
"[2:00:00] WIDGET B (0029777): SECOND SHIPMENT OF WRONG SKU (01:50:00);
TRAINING OF NEW OPERATOR (00:10:00)"
Obviously, the information is listed in the order: Total down-time,
name of part, class number, description, and finally individual down
time as to each individual entry.
I have a simple code that populates the listbox with all entries that
were made on the relevant date:
_________________
For i = 1 To 10005
If Sheet1.Cells(i, "A").Value = todays_date Then
entry.ListBox_todaymats.AddItem Sheet1.Cells(i, "B").Value & "
" & Cells(i, "C").Value & " " & Cells(i, "D").Value & " " &
Cells(i, "E").Value
End If
next
_________________
But I am stuck on hwo to proceed. I need Excel to:
(1) First only look at entries made on today's date (above code does
this);
(2) Next look only at entries made today that have common class-num
(3) Then, group all common class-nums together and display infor as
shown above;
(4) Then, repeat step 3 for other class-nums entered today;
(5) and finally, open a word document and paste all the data into a
word document in the same manner as referenced above.