- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 1# PD961A
קï¤F¤@¤U ½Ð¸Õ¸Õ¬Ý- Sub Get_BardCode()
- Dim A As Range, d As Object, r%, k%, cnt%, i%, pnt%
- Set d = CreateObject("Scripting.Dictionary")
- With Sheet2
- For Each A In .[A1:D1]
- d(A.Value) = InputBox("½Ð¿é¤J" & A & "¹w³]¦r¤¸", "¹w³]¦r¤¸", IIf(A = .[C1], "", IIf(A = .[A1], "CC", Mid(A, 1, 1))))
- Next
- ay = d.items
- For Each A In .Range(.[A2], .[A65536].End(xlUp))
- A.Offset(, 4) = InputBox("½Ð¿é¤J²Ä" & A.Row & "¦C" & A & "¤À¸Ë¶q", "¤À¸Ë¶q", 4)
- A.Offset(, 5) = IIf(A.Offset(, 1) Mod A.Offset(, 4) = 0, A.Offset(, 1) / A.Offset(, 4), Int(A.Offset(, 1) / A.Offset(, 4)) + 1)
- Next
- Sheet1.Range("B:C,F:G,J:K") = ""
- r = 2: k = 2
- For Each A In .Range(.[A2], .[A65536].End(xlUp))
- Ar = Array(A, A.Offset(, 4), A.Offset(, 2), A.Offset(, 3))
- For cnt = 1 To A.Offset(, 5)
- With Sheet1.Cells(r, k).Resize(4, 1)
- .Value = Application.Transpose(Ar)
- For i = 0 To 3
- .Offset(, 1).Cells(i + 1) = "*" & ay(i) & Ar(i) & "*"
- Next
- End With
- k = k + 4
- If k > 10 Then k = 2: r = r + 5
- Next
- Next
- End With
- pnt = MsgBox("¬O§_¦C¦L" & Chr(10) & Chr(10) & "¬O ¦C¦L" & Chr(10) & "§_ ¹wÄý" & Chr(10) & "¨ú®ø Â÷¶}", vbYesNoCancel)
- If pnt = 2 Then Exit Sub
- If pnt = 6 Then Sheet1.PrintOut '¦C¦L
- If pnt <> 6 Then Sheet1.PrintPreview '¹wÄý
- End Sub
½Æ»s¥N½X |
|