½Ð°Ý³sµ²¥t¤@ÓÀɮפ£n¥´¶}
- ©«¤l
- 27
- ¥DÃD
- 12
- ºëµØ
- 0
- ¿n¤À
- 318
- ÂI¦W
- 294
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-7-20
- ³Ì«áµn¿ý
- 2024-11-30
|
½Ð°Ý³sµ²¥t¤@ÓÀɮפ£n¥´¶}
|
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X
|
|
|
|
|
- ©«¤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
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2010-10-5 09:17 ½s¿è
¦^´_ 1# amu1129
§Aªº¿ù»~¬O If (Wb.Worksheets("Sheet1").Cells(i+3, 2).Value) Mod 100 = 0 Then ¨S¦³¥[3 ¨ä¥L³£¦³¥[3
ÀÉ®×¥²¶·¬O¶}±Òªº ¤~¥i¥H°õ¦æ. ©óµ{¦¡³Ì«áÃö³¬±¼´N¥i¥H
¦pn¥Î«ö¶s°õ¦æ ½Ð §R±¼Sub Workbook_Open ªºµ{¦¡ ±Nµ{¦¡½X½Æ»s¨ì «ö¶sªºµ{¦¡¸Ì
¥t¥~§Ú·Q¬Û¦Pªº²£«~¼Æ¶q¥[Á`Åã¥Ü¤@¦¸´N¦n µ{¦¡½X¦p¤U:- Private Sub Workbook_Open()
- Dim Wb As Workbook, d As Object, i%, ii%
- Set Wb = Workbooks.Open("C:\Documents and Settings\123\®à±\Test\B.xls")
- Set d = CreateObject("Scripting.Dictionary")
- For i = 1 To 30
- If d.exists(Wb.Worksheets("Sheet1").Cells(i + 3, 1).Value) = False And Wb.Worksheets("Sheet1").Cells(i + 3, 1) <> "" Then
- d(Wb.Worksheets("Sheet1").Cells(i + 3, 1).Value) = ""
- ii = ii + 1
- ThisWorkbook.Worksheets("Sheet1").Cells(2, 4 * ii - 2) = Wb.Worksheets("Sheet1").Cells(i + 3, 1).Value
- If (Wb.Worksheets("Sheet1").Cells(i + 3, 2).Value) Mod 100 = 0 Then
- ThisWorkbook.Worksheets("Sheet1").Cells(3, 4 * ii - 2) = "(¥Ø¼Ð " & (Wb.Worksheets("Sheet1").Cells(i + 3, 2).Value) / 1000 & "k)"
- Else
- ThisWorkbook.Worksheets("Sheet1").Cells(3, 4 * ii - 2) = "(¥Ø¼Ð " & (Wb.Worksheets("Sheet1").Cells(i + 3, 2).Value) & "units)"
- End If
- End If
- Next
- Wb.Close 'Ãö³¬ÀÉ®×
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 27
- ¥DÃD
- 12
- ºëµØ
- 0
- ¿n¤À
- 318
- ÂI¦W
- 294
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-7-20
- ³Ì«áµn¿ý
- 2024-11-30
|
ª©¥D~¤£¦n·N«ä
§Ú¤£¤ÓÀ´ii = ii + 1³o¬qªº¥ÎªkC
§Ú³v¬q°õ¦æ¤jPª¾¹D¬O±N«½Æªº²£«~¦X¤@
¦ý¬O·Q§ó²M·¡¬°¦ó³o¼Ë¥i¥H¦X¨Ö
·Ð½Ðª©¥DÀ°§Ú«üÂI¡AÁÂÁ |
|
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X
|
|
|
|
|