ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

½Ð°Ývba-°õ¦æ¶}±Ò¬¡­¶Ã¯

½Ð°Ývba-°õ¦æ¶}±Ò¬¡­¶Ã¯

½Ð°Ý¦U¦ì¡G
¦pªG¦b¤½¥qªº¦@¥Î°Ï¨C¤é·|¨Ì¤é´Á²£¥Í·sªº³øªí¡A¨äÀɦW¬°¡G¬d®Ö¸ê®Æ0725.xls
­Y¬O§Ú·Q¼g¤@­Ó¥¨¶°¡A¨C¤é°õ¦æ®É·|¦Û°Ê¶}±Ò·í¤é¡]©Î«e¤@¤é¡^ªº³øªí¶Ü¡H

·PÁ¡I

¥»©«³Ì«á¥Ñ luhpro ©ó 2013-7-25 22:16 ½s¿è

¦^´_ 1# eric093
  1. Dim sStr$, sPath$
  2. sPath = "D:\"   ' ½Ð³]¬°¹ê»Ú¬d®Ö¸ê®Æ¬ÛÃöÀɮשҦbªº¥Ø¿ý
  3. sStr = "¬d®Ö¸ê®Æ" & Right("0" & Month(Date), 2) & Right("0" & Day(Date), 2) & ".xls"
  4. Workbooks.Open sPath & sStr
½Æ»s¥N½X

TOP

·PÁ¡A¤£¹L¡A·Q°ÝsStr$¡A¥[³o­Ó$¬O¤°»ò·N«ä¡H¥i¥H¤£¥[¶Ü¡H

TOP

©êºp¡A½Ð°Ý±µÄò¤W­±ªº°Ê§@«á¡A§Ú·Q±N¶}±Òªº¬d®Ö¸ê®Æ¡]´N¥u¦³¤@­Ósheet)¶i¦æ½Æ¨î¦Ü­ì¥»ÀɮסA
¦ý«ç»ò¸Õ³£¤£¦æ...±Ï±Ï§Ú§a
Window("sStr&.xls").Activate.Select
Windows("sStr&.xls").Activate.Copy
Workbooks("½m²ß¶}ÀÉ").Sheets("sheet1").Select

Workbooks("½m²ß¶}ÀÉ").Sheets("sheet1").Paste

TOP

¦^´_ 4# eric093
  1. Option Explicit
  2. Sub Ex()
  3.     'String(¦r¦ê)ªº«¬ºA«Å§i¦r¤¸¬° $¡C
  4.     'Dim sStr$, sPath$
  5.     Dim sStr As String, sPath As String  'Dim(«Å§i)  ÅÜ¼Æ As String(¦r¦ê)ªº«¬ºA
  6.     sPath = "D:\"                        ' ½Ð³]¬°¹ê»Ú¬d®Ö¸ê®Æ¬ÛÃöÀɮשҦbªº¥Ø¿ý
  7.     sStr = "¬d®Ö¸ê®Æ" & Right("0" & Month(Date), 2) & Right("0" & Day(Date), 2) & ".xls"
  8.     Workbooks.Open sPath & sStr
  9.     Workbooks(sStr).Sheets(1).Copy After:=Workbooks("½m²ß¶}ÀÉ").Sheets(1)

  10. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

·PÁ³á¡I§Úª¾¹D¤F¡I
§Ú¯uªº«Ü²L¡AÁÙ¦b¾Ç²ß¡AÁÙ¦n¦³³o­Óºô¯¸¥i¥H½Ð¦U¦ì°ª¤â¡I

TOP

        ÀR«ä¦Û¦b : ¤£©È¨Æ¦h¡A¥u©È¦h¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD