¦p¦óŪ¨ú¦h¼ÆEXCELÀɮפ¤¦P¤@¦Cor¦æªº¼Æ¾Ú¨Ã¶i¦æ¤ÀªR
- ©«¤l
- 2
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 3
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWS
- ³nÅ骩¥»
- WIN8.0
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2015-1-21
- ³Ì«áµn¿ý
- 2015-2-16
|
¦p¦óŪ¨ú¦h¼ÆEXCELÀɮפ¤¦P¤@¦Cor¦æªº¼Æ¾Ú¨Ã¶i¦æ¤ÀªR
¦U¦ì¥ý¶i¦n¡A¤p§Ì¤§«e¬ã²ß¹LC++µ{¦¡¡A¦]¬°¹ï©óVBA¿·P¿Ë¤Á¡F¥ý«eÂÇ¥Ñ"¿ý»s¥¨¶°"¤gªk·Ò¿ûªº¾Ç²ß¡A¤£¹Lê©ó«Ü¦h«ü¥O¦WºÙ¤£¼ô±x¡A¤SWµL³~®|¤Jªù¡A©Ò¥H·Q¦b¦¹©M¤j®a½Ð±Ð¡G
§Ú·Qn³]©w¤@Ó¥¨¶°¥i¥H¸õ¥Xµøµ¡«ü©w¸ê®Æ§¨¡A¨Ã§â¸ê®Æ§¨¤º©Ò¦³EXCELÀɮפ¤¦P¤@¦C©Î¬O¦P¤@¦æªº¼Æ¾Ú¾ã²z¨ì·sªº¬¡¶Ã¯¤¤¡G
¸ê®Æ§¨¤ºÀɮ׬O¦³³W«ß©Êªº¡AP.S "ABCDE-Eng-ABC123.1-01.XLS" , "ABCDE-Eng-ABC123.1-02.XLS" , "ABCDE-Eng-ABC123.1-03.XLS" .......¼Æ¶q¤£¤@
½Ð°Ýn¥Î¬Æ»ò«ü¥O¦bVBA¤¤¹ê²{©O?
ÁÂÁ¡ã |
|
|
|
|
|
|
- ©«¤l
- 559
- ¥DÃD
- 58
- ºëµØ
- 0
- ¿n¤À
- 626
- ÂI¦W
- 0
- §@·~¨t²Î
- win8
- ³nÅ骩¥»
- office2013
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- TW
- µù¥U®É¶¡
- 2010-11-22
- ³Ì«áµn¿ý
- 2024-6-14
|
¥»©«³Ì«á¥Ñ hugh0620 ©ó 2015-1-21 17:37 ½s¿è
¦^´_ 1# shauefu
VBA¡A¤À¬q¸¨¼g¡G
1. ¥ý¼g¥X¦p¦ó«ü©w¸ê®Æ§¨
2. Ū¨ú¨ä¤¤¤@ÓEXCEL¤¤ªº¸ê®Æ
¤U±½d¨Ò¦¡«ü©w¸ê®Æ§¨¨ä¤¤¤@Óexcel±N¸ê®Æ¶K¨ì¥Ø¼Ðexcel¤¤- Private Sub CommandButton2_Click() '¶×¥X¸ê®Æ
- Application.ScreenUpdating = False
- patch = Application.GetOpenFilename("Microsoft Excel ¬¡¶Ã¯ (*.xls), *.xls") 'ÂI¿ïÀÉ®×
- If patch = False Then
- Exit Sub
- Else
- Workbooks.Open (patch) '¶}±ÒÀÉ®×
- '¶×¤J·s¸ê®Æ
- ActiveWorkbook.Sheets(2).Select
- Sheets(2).Range("A3:M3").Select
- Sheets(2).Range(Selection, Selection.End(xlDown)).Copy ThisWorkbook.Worksheets.Item(4).Range("A1").End(xlDown).Offset(1, 0)
- ActiveWorkbook.Close 0
- End If
- Application.ScreenUpdating = True
- End Sub
½Æ»s¥N½X 3. ³Ì«á¡Arun¾ãÓ¸ê®Æ§¨¤¤ªºexcel¡AŪ¨ú¨C¤@Óexcel¯S©w¦ì¸mªº¸ê®Æ¡C
¤U±¦¡®×¨Ò°w¹ï¦P¤@Óexcel¤¤sheetªº§R°£¡A¥Î¬Û¦Pªº¤è¦¡¥i¥H¶]¨C¤@ÓexcelÀÉ- Private Sub CommandButton2_Click() '§R°£
- Dim Sh As Worksheet
- Application.DisplayAlerts = False
- For Each Sh In Sheets
- If Sh.Name <> "Data¶×¾ã" And Sh.Name <> "ì©lData" Then Sh.Delete
- Next
- Application.DisplayAlerts = True
- End Sub
½Æ»s¥N½X |
|
¾Ç²ß¤~¯à´£¤É¦Û¤v
|
|
|
|
|
- ©«¤l
- 2
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 3
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWS
- ³nÅ骩¥»
- WIN8.0
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2015-1-21
- ³Ì«áµn¿ý
- 2015-2-16
|
·PÁ¦^ÂСA§Ú·|¬ã¨s¬Ý¬Ý¡A·P¿E¤£ºÉ! |
|
|
|
|
|
|