- ©«¤l
- 549
- ¥DÃD
- 152
- ºëµØ
- 0
- ¿n¤À
- 691
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- OFFICE 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-8-10
- ³Ì«áµn¿ý
- 2022-9-7
|
¥»©«³Ì«á¥Ñ PKKO ©ó 2014-12-2 07:57 ½s¿è
¦^´_ 5# GBKEE
¶Wª©¤j¤j,·PÁ±zªº¦^ÂÐ
¦ý¥H¤U¨â¦æµ{¦¡½X¬ÒµL¤ÏÀ³
Sh(1).UsedRange.Clear
Sh(2).Copy Sh(1).Range("a1")
¤p§Ì¹Á¸Õ¤F¤@¤U¤´µLªk¥ÎSETªº¤è¦¡¦¨¥\
¦]¦¹§ï¬°¥H¤Uµ{¦¡½X,¥Ø«e¤w¥i¥¿±`¨Ï¥Î
¦s¨ú³t«×¤j¬ù¨â¬í¥H¤º(¥i¯à¬OSHEET¤£¦hªºÃö«Y¥Ø«eÁÙº¡§Öªº)
·PÁ¤j¤j,po¤W¤p§Ì¹ê»Úªºµ{¦¡½X- Sub Àx¦s«eÀx¦s¦Ü¸ê®Æ®w()
- Application.ScreenUpdating = False 'Ãö³¬¿Ã¹õ
- Application.DisplayAlerts = False 'Ãö³¬Äµ§iµøµ¡
- Dim Xpath As String, A As Variant, sh As Worksheet
- W1 = ThisWorkbook.Name
- Xpath = "C:\Users\apple\Google ¶³ºÝµwºÐ\Excel\"
- Workbooks("¸ê®Æ®w.xlsb").Close False 'Àx¦s¶}±Ò¤¤ªºÀÉ®×,¦¹¶}±Ò¤¤ªºÀɶ·¥ýÃö³¬
- Workbooks.Open (Xpath & "¸ê®Æ®w.xlsb")
- For Each sh In Workbooks(W1).Sheets
- Workbooks("¸ê®Æ®w.xlsb").Sheets(sh.Name).UsedRange.Clear
- Workbooks(W1).Sheets(sh.Name).[a1].CurrentRegion.Copy
- Workbooks("¸ê®Æ®w.xlsb").Sheets(sh.Name).Activate'¦³ÂI¦h¾lªºµ{¦¡½X,¦ý¤£¤Ó·|§ï
- Range("a1").Select'§Ú¥u¬OnÅý¤U±¶K¨ìa1
- Workbooks("¸ê®Æ®w.xlsb").Sheets(sh.Name).Paste'ª½±µ¶K¤W¤£·|¶K¨ì[A1],¦]¦¹¦h¤F¤W±¨â¦æµ{¦¡½X
- Next
- Workbooks("¸ê®Æ®w.xlsb").Close True
- Workbooks.Open Xpath & "¸ê®Æ®w.xlsb", ReadOnly:=True '¦A«×¶}±ÒÀÉ®×(°ßŪ)
- Application.WindowState = xlMinimized '±N¸ê®Æ®w³Ì¤p¤Æ
- Application.CutCopyMode = xlCopy '²M°£°Å¶Kï
- Application.ScreenUpdating = True
- Application.DisplayAlerts = True
- MsgBox "¾Þ§@¦¨¥\"
- End Sub
½Æ»s¥N½X |
|