- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 259
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-30
|
¦^´_ 1# imzues
Sub Ex()
Dim MySheet As Worksheet
Set MySheet = ActiveSheet'·í«e§@¥Î¤¤ªº¤u§@ªí³]µ¹ÅܼÆ
With Workbooks.Open("d:\test\¥~³¡¸ê®Æ.xls")"¶}±ÒÀɮסA¦¹®É§@¥Î¤¤¤u§@ªí¬°¶}±ÒÀɮ׫᪺¤u§@ªí¡A¤£n¸òMySheet²V²c¤F
With Sheets("4¤ë").Range("M9:AF9")'³o·|«ü©w¨ì¥~³¡¸ê®Æ.xlsªºSheets("4¤ë").¤u§@ªí¤¤M9:AF9½d³ò
.MySheet.Range("B6").End(xlDown).Offset(1, 0) = .Value'¦¹¦æ´N·|²£¥Í¿ù»~¡A¦]¬°¥~³¡¸ê®Æ.xlsªºSheets("4¤ë").¤u§@ªí¤¤M9:AF9¤£¥i¯à¥]§t¨ì MySheet¡AMySheetªºª«¥ó¶¥¼h¬OSHEET¡A¦Ó¦¹°Ï¬q¤¤.ªº±Ôz¥²¶·¬OSHEET¶¥¼h¤Uªºª«¥ó
.Close 0 '¥~³¡¸ê®Æ.xlsªºSheets("4¤ë").¤u§@ªí¤¤M9:AF9½d³ò¤£¥i¯à³òÃöÀɰʧ@
End With
End With
'
End Sub- Sub Ex()
- Dim MySheet As Worksheet
- Set MySheet = ActiveSheet'·í«e§@¥Î¤¤ªº¤u§@ªí³]µ¹ÅܼÆ
- With Workbooks.Open("d:\test\¥~³¡¸ê®Æ.xls")
- With Sheets("4¤ë").Range("M9:AF9")'³o·|«ü©w¨ì¥~³¡¸ê®Æ.xlsªºSheets("4¤ë").¤u§@ªí¤¤M9:AF9½d³ò
- MySheet.Range("B6").End(xlDown).Offset(1, 0).Resize( , .Count) = .Value
- End With
- .Close 0
- End With
- End Sub
½Æ»s¥N½X |
|