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

[µo°Ý] ½Ð°ª¤HÀ°¦£°£¿ù¡AÁÂÁÂ~

½Ð°Ý¦³µL°ª¤â¥i¥H°µ¨ì³o®ÄªG

³]©w©w®É±Nserver ªº´X­Óexcel copy ¦b®à­±¡H
¨Ò¦p¡G
server
Y:\2012\Jan\[a.xlsx]
Y:\2012\Feb\[b.xlsx]
Y:\2012\Mar\[c.xlsx]
Y:\2012\Apr\[d.xlsx]
Z:\2012\[e.xlsx]
±N¤W­±³o¨Çfile copy ¨ì¤U­±¦a§}¡G
C:\user\destop\
¦pªG¥i¥H±NFILE¦W§ïÅܦ¨¥t¤@­Ó¦W´N§ó¦n
¨Ò¦p
[a.xlsx] §ï¦¨ 1.xlsx
[b.xlsx] §ï¦¨ 2.xlsx
[c.xlsx] §ï¦¨ 3.xlsx
[d.xlsx] §ï¦¨ 4.xlsx
[e.xlsx] §ï¦¨ 5.xlsx

¥t¥~¦pªGSERVER¦W¨C¤é¤£¦P¥i¥H¶Ü¡G
¨Ò¦p¡G
¤µ¤é¬O2/Dec
server
Y:\2012\Jan\[a2-12.xlsx]
Y:\2012\Feb\[b2-12.xlsx]
Y:\2012\Mar\[c2-12.xlsx]
Y:\2012\Apr\[d2-12.xlsx]
Z:\2012\[e2-12.xlsx]

¤µ¤é¬O3/Dec
server
Y:\2012\Jan\[a3-12.xlsx]
Y:\2012\Feb\[b3-12.xlsx]
Y:\2012\Mar\[c3-12.xlsx]
Y:\2012\Apr\[d3-12.xlsx]
Z:\2012\[e3-12.xlsx]
¦p¦¹Ãþ±À¡A¦WºÙ¸ò¤é´ÁÅÜ°Ê

TOP

¦^´_ 1# 198188

¤£ª¾§Aªº [  ]¬O§_¬O¯u¹ê¦s¦b   ¦b³o§Ú°²³]®Ø¬O¨S¦³ªº!
    Sub txet1()
'³æ¯Â½Æ»s§ó¦W
VBA.FileCopy "Y:\2012\Jan\a.xlsx", "C:\user\destop\1.xlsx"
VBA.FileCopy "Y:\2012\Feb\b.xlsx", "C:\user\destop\2.xlsx"
VBA.FileCopy "Y:\2012\Mar\c.xlsx", "C:\user\destop\3.xlsx"
VBA.FileCopy "Y:\2012\Apr\d.xlsx", "C:\user\destop\4.xlsx"
VBA.FileCopy "Y:\2012\e.xlsx", "C:\user\destop\5.xlsx"
End Sub


¦psever¨C¤éÀÉ®×·|ÅÜ°Ê
»Ý­n¦b¸ô®|¥[¤W§P§O¤µ¤Ñ ¤é´Áªº»yªk
p =Format(Date, "d")&"-"&Format(Date, "m")
Format(Date, "d")  <-¤µ¤Ñªº¤é´Á ¨ú"¤é"
Format(Date, "m") <-¤µ¤Ñªº¤é´Á ¨ú"¤ë"

©Ò¥H²z½×¤W ´N­n §ï¬°
VBA.FileCopy "Y:\2012\Jan\a& p & .xlsx", "C:\user\destop\1.xlsx"


¦W¤l¤£¦P³o³¡¤À¥i¯àÁÙ­n¥[¥H­×¥¿  ¦]¬°­n¥Xªù¤F ½Ð¨ä¥L¤j¤jÀ°§Ú¥[¥H­×¥¿ ·PÁÂ!!
Application.OnTime TimeValue("20:00:00"), "Module1.text1"
¹q¸£®É¶¡¨ì¥H¤W®É¶¡´N°õ¦æ¼Ò²Õ ¡§ MODULE 1 ¡¨ ¤ºªº ¡§ text1 ¡¨ ³o­Óµ{¦¡
¦Û¥Î¨®¤]¥i¥Hñ±b³á!
¤­¤d¤¸¥[ªoª÷¥[¤Jªo½c«áÁÙ¦^õX±z6200¤¸
ºÖ§Q©ô¨®¤Í·|power-want.com

TOP

¦^´_ 2# die78325


    VBA.FileCopy "Y:\2012\Jan\a.xlsx", "C:\user\destop\1.xlsx"
¦pªGcopy ªºfile ¤£§tVBA¡A¬O¤£¬O¤£¥Î¼gvba,¥u¼gFileCopy "Y:\2012\Jan\a.xlsx", "C:\user\destop\1.xlsx"


Application.OnTime TimeValue("20:00:00"), "Module1.text1"
¹q¸£®É¶¡¨ì¥H¤W®É¶¡´N°õ¦æ¼Ò²Õ ¡§ MODULE 1 ¡¨ ¤ºªº ¡§ text1 ¡¨ ³o­Óµ{¦¡
³o­Ó¬O¤£¬O«ü©w20¡G00¤~copy¡A¦pªG¬O¥b¤p®Écopy¤@¦¸¥i¥H¶Ü¡H¦Ó®à­±¥»¨­¦³³o­Ófile¡A¬O¤£¬O¦Û°ÊÂл\ªºfile?

¨º»ò¬O¤£¬O±N³o­Óµ{¦¡¥[¦b·sªº¤@­Óexcel¡AÁÙ¬O©ñ¦b·Qcopyªºexcel¤º¡]a.xlsx  b.xlsx  c.xlsx  d.xlsx   e.xlsx¡^

TOP

¦^´_ 3# 198188


       ¦^µª²Ä¤@ÃD    ¨S¿ù   «e­±¤£»Ý­nvba.
   ¦^µª²Ä¤GÃD    ¹ï  ¨º¥yµ{¦¡¬O¥u¦³¦b¹q¸£¥k¤U¨¤20:00:00ªº®É­Ô¤~·|°õ¦æ
     ¥b¤p®Éªº¸Ü  
     Application.OnTime Now + TimeValue("00:30:00"), "Module1.text1"
   ¦^µª²Ä¤TÃD    ·|¦Û°ÊÂл\
   ¦^µª²Ä¥|ÃD    ¤£­n¦b¨ºabcde¸Ì­±©ñ¸mvba   ÀH«K¤@­Óexcel¤º´N¦n
¦Û¥Î¨®¤]¥i¥Hñ±b³á!
¤­¤d¤¸¥[ªoª÷¥[¤Jªo½c«áÁÙ¦^õX±z6200¤¸
ºÖ§Q©ô¨®¤Í·|power-want.com

TOP

¦^´_ 4# die78325


    ·PÁ¡C
¦ý§Ú°Ýªº¥b¤p®É¡A·N«ä¬O¨C¥b¤p®É¦Û°Ê°µ¤@¦¸¡A¤£°±¦a¦Û°Ê°µ¡C
§A¨º¥y¬O§_¬O³o­Ó·N«ä¡H

TOP

¦^´_ 5# 198188


    ¬Oªº   ¨â¥y»yªk¤£¤@¼Ë! ½Ðª`·N
Application.OnTime Now + TimeValue("00:30:00"), "Module1.text1"  '¥b¤p®É

Application.OnTime TimeValue("20:00:00"), "Module1.text1"   '20:00:00°õ¦æ
¦Û¥Î¨®¤]¥i¥Hñ±b³á!
¤­¤d¤¸¥[ªoª÷¥[¤Jªo½c«áÁÙ¦^õX±z6200¤¸
ºÖ§Q©ô¨®¤Í·|power-want.com

TOP

¦^´_ 6# die78325


1)  
Sub txet1()

P = Format(Date, "m") & "-" & Format(Date, "d")

FileCopy "Y:\2012\shipment 2012\ORACLE\ORACLESS & p & .xlsx", "C:\Users\patrick.HKG\Desktop\oracless.xlsx"

End Sub
¥X²{ run-time error '53' file not found

2)
Sub txet1()


FileCopy "Y:\2012\shipment 2012\Mainland ETA Update.xlsx", "C:\Users\patrick.HKG\Desktop\Mainland ETA Update.xlsx"

FileCopy "Y:\2012\payment 2012\One Time Deposit list.xlsx", "C:\Users\patrick.HKG\Desktop\One Time Deposit list.xlsx"
FileCopy "Y:\2012\payment 2012\payment report 2012.xlsx", "C:\Users\patrick.HKG\Desktop\payment report 2012.xlsx"

FileCopy "Y:\2012\claim 2012\Claim control 20100106.xls", "C:\Users\patrick.HKG\Desktop\Claim control 20100106.xls"

FileCopy "Y:\2012\shipment 2012\HK ETA update.xlsx", "C:\Users\patrick.HKG\Desktop\HK ETA update.xlsx"
FileCopy "W:\PIHK\NEW ­»´ä¿ì¤½«Ç¥¿¥»¦¬©ñ³æ°O¿ý-FROM 01-MAR-2012 to current(updated).xlsx", "C:\Users\patrick.HKG\Desktop\NEW ­»´ä¿ì¤½«Ç¥¿¥»¦¬©ñ³æ°O¿ý-FROM 01-MAR-2012 to current(updated).xlsx"
FileCopy "Y:\2012\contract record 2012\daily doc.xlsx", "C:\Users\patrick.HKG\Desktop\daily doc.xlsx"
FileCopy "Y:\2012\shipment 2012\ORACLE\ORACLESS 11-28 .xlsx", "C:\Users\patrick.HKG\Desktop\oracless.xlsx"
End Sub

¥X²{run-time error '70'  permission denied

TOP

¥»©«³Ì«á¥Ñ kimbal ©ó 2012-12-3 21:54 ½s¿è

¦^´_ 7# 198188


    1)  p ³s±µ¦³»~
FileCopy "Y:\2012\shipment 2012\ORACLE\ORACLESS" & p & ".xlsx" , "C:\Users\patrick.HKG\Desktop\oracless.xlsx"

2) ¦r­±¤W¬Ý¬OÅv­­°ÝÃD, §A¸Õ¹L¤â°Ê§Û¤W¥hµL°ÝÃD¶Ü? ¥Ø¼ÐªºXLS¦³¨S¦³¥¿¦b¥´¶}? ¥´¶}ªº¸Ü·|§Û¤£¤W¥h
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

¦^´_ 8# kimbal

1)  p »Ý­nSET¤°»ò¶Ü¡HDIM P AS STRING ³oÃþ¶Ü¡H
Sub txet1()

P = Format(Date, "m") & "-" & Format(Date, "d")

FileCopy "Y:\2012\shipment 2012\ORACLE\ORACLESS" & p & ".xlsx" , "C:\Users\patrick.HKG\Desktop\oracless.xlsx"

End Sub



2) ¦r­±¤W¬Ý¬OÅv­­°ÝÃD, §A¸Õ¹L¤â°Ê§Û¤W¥hµL°ÝÃD¶Ü? ¥Ø¼ÐªºXLS¦³¨S¦³¥¿¦b¥´¶}? ¥´¶}ªº¸Ü·|§Û¤£¤W¥h
§Ú¬Ocopy ±¶®|¤W¥hªº¡A¤@­Ó¤@­Ócopy¤W¥h¡A¦ý¤@ª½³£µL°ÝÃD¡A¤§«á¥[¤W¤W­±p¨º¥y«á¡A´N¶}©l¥X²{³o¨Ç°ÝÃD¤F¡C¥Ø¼Ð¨S¦³¥´¶}¡C´Nºâ§R°£p ¨º¥y«á¡A¤]¬O³o¼Ë¡C

TOP

¦^´_ 8# kimbal


   ¥t¥~½Ð°Ý¦pªGcopy¤£¦Pªºserver·|¦³°ÝÃD¶Ü¡H
¨Ò¦p¡G
Y:\2012\NOV\1.XLSX
X:\SHIPMENT\A.XLSX

©ÎªÌ¥i§_±N¤£¦Pªºserver¤º¤£¦Pªºexcel,¤£¦Pªºsheet,copy¦b¥t¥~¤@­Óexcel¥i¥H¶Ü¡H
¬A¸¹¤º¥Nªísheet¦W
Y:\2012\shipment 2012\Mainland ETA Update.xlsx (MAINLAN ETA)
Y:\2012\payment 2012\One Time Deposit list.xlsx (NOV)
Y:\2012\payment 2012\payment report 2012.xlsx (2012)
Y:\2012\claim 2012\Claim control 20100106.xlsx(2012)
Y:\2012\shipment 2012\HK ETA update.xlsx(HK ETA)
W:\PIHK\NEW ­»´ä¿ì¤½«Ç¥¿¥»¦¬©ñ³æ°O¿ý-FROM 01-MAR-2012 to current(updated).xlsx(RECEIVE)
Y:\2012\contract record 2012\daily doc.xlsx (DAILY DOCS)
Y:\2012\shipment 2012\ORACLE\ORACLESS 11-28 .xlsx(ORACLESS)

±N¥H¤Wªºsheet ¦P®Écopy ¦b¤U­±excel¤º¥i¥H¶Ü¡H¨C­Ósheet¦Û°Ê¤À¶},¥Î¥¦­Ìªºexcel¦W¨Ó©R¦Wsheet¦W
C:\Users\patrick.HKG\Desktop\Master.xlsx

TOP

        ÀR«ä¦Û¦b : °µ¦n¨Æ¤£¯à¤Ö§Ú¤@¤H¡A°µÃa¨Æ¤£¯à¦h§Ú¤@¤H¡C
ªð¦^¦Cªí ¤W¤@¥DÃD