VBA ¼ÆÓExcelªº¤À¶¡A¥þ³¡¾ã¦X¨ì¤@ÓExcel
- ©«¤l
- 57
- ¥DÃD
- 36
- ºëµØ
- 0
- ¿n¤À
- 94
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office2013
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2014-9-10
- ³Ì«áµn¿ý
- 2024-8-13
|
VBA ¼ÆÓExcelªº¤À¶¡A¥þ³¡¾ã¦X¨ì¤@ÓExcel
¥Ø«e¤u§@¤W¸I¨ì¤@ÓÃøÃD
¥Dn¬O¥i¯à¦³¤¤Q´XÓExcelªºÀÉ®×
¨CÓExcel¤º°²³]¦³¦hÓsheet¡Asheet¤º¥i¯à¦³¹Ï¤ù¡A¥i¯à¦³¹Ï§Î©Î¤å¦r¤§Ãþªº
¦p¦ó¹B¥ÎVBAªº¤è¦¡
±N¨CÓExcel¤ºªº¤À¶¡A¥þ³¡½Æ»s¨ì¤@Óallªºexcel
·íµM¨CÓ¤À¶¬O¿W¥ßªº
¤]´N¬O°²Y¦³50ÓExcel¡A¨CÓExcel¦³3ÓSheet
«hallªºexcel¤º±N·|¦³150Ósheet!!
·Q½Ð°ÝªO¤Wªº°ª¤â¬O§_¥i¥HÀ°¦£¸Ñ¨M
thank you! |
|
|
|
|
|
|
- ©«¤l
- 561
- ¥DÃD
- 160
- ºëµØ
- 0
- ¿n¤À
- 725
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWS
- ³nÅ骩¥»
- xp
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2014-9-10
- ³Ì«áµn¿ý
- 2024-8-7
|
DEAR SIR
±NALL EXCEL ¸m©ó C:\AAA¸ê®Æ§¨¤º
°õ¦æ¦p¤U ´N¥i ALL EXCEL ¦Û°ÊÂà´« ¦Ü³æ¤@EXCEL¤¤ ¸Õ¸Õ
Sub yy()
Dim a As Workbook, f$
Dim p$, sh As Worksheet
Set a = ThisWorkbook
p = "C:\AAA\"
f = Dir(p & "*.xls")
Application.ScreenUpdating = False
Do While f <> ""
Workbooks.Open p & f
For Each sh In Worksheets
'On Error Resume Next
X = WorksheetFunction.CountA(sh.Range("a1:iv65536"))
Y = ActiveWorkbook.Name
If X <> 0 Then
sh.Copy after:=a.Sheets(a.Sheets.Count)
End If
Next
Windows(f).Close True
f = Dir
Loop
Application.ScreenUpdating = True
Sheet1.Select
Range("A1").Select
End Sub |
|
ù
|
|
|
|
|