- ©«¤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# ii31sakura
¬O³o¼Ë¶Ü?- Sub ¤À¶½T»{()
- Dim wb(1 To 2) As Workbook, SN As String, SNN As Integer
- Set wb(1) = ThisWorkbook
- Set wb(2) = Workbooks.Open(Worksheets("Á`±±¨î").Cells(2, 3) & "\" & Worksheets("Á`±±¨î").Cells(2, 2))
- For i = 2 To wb(1).Worksheets("¤Hû²M³æ").[e65536].End(3).Row 'ÅܼÆi ±q2¨ì eÄæ³Ì«á¤@¶µ¸ê®Æ
- SN = wb(1).Worksheets("Á`±±¨î").Cells(i, 5) ' °ÝÃDÂI
- For Each s In wb(2).Sheets
- SNN = 0
- If s.Name = SN Then
- SNN = 1
- Exit For
- End If
- Next
- If SNN = 0 Then
- wb(2).Sheets.Add
- ActiveSheet.Name = SN
- Else
- Sheets(SN).Select
- End If
- Next
- wb(2).Close True
- End Sub
½Æ»s¥N½X |
|