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

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

¦^´_ 13# GBKEE


  ¨º»ò¬O¤£¬Oµ{¦¡¦³°ÝÃD¡A»Ý­n§ó§ï¡H

TOP

¦^´_ 11# 198188
§Úªºfile ¦W¬O Outstanding Payments  12-4-2012
run ¬O¥X²{run-time error '53': file not found

½ÐÀˬdÀɦW
  1. Option Explicit
  2. Sub txet1()
  3.   Dim P As String, xfile As String
  4.   '§Úªºfile ¦W¬O "Outstanding Payments  12-4-2012"
  5.   xfile = "Outstanding Payments  12-4-2012"  '
  6.   P = Format(Date, "M-D-YYYY")
  7.   P = "Outstanding Payments " & P & ".xls"
  8.   MsgBox xfile = P   '¸g¤ñ¹ï ¬O False ¨â¦r¦ê¤£¬Û¦P
  9. End Sub
½Æ»s¥N½X

TOP

½Ð±Ð¦U¦ì°ª¤â¸Ñ¨M°ÝÃD

1¡^Sub txet1()
   P = Format(Date, "m") & "-" & Format(Date, "d") & "-" & Format(Date, "Y")
VBA.FileCopy "Y:\2012\payment 2012\Outstanding payment ss 2012\Dec 2012\Outstanding Payments " & P & ".xlsm", "C:\users\patrick.hkg\desktop\outstanding payments.xlsm"
End Sub

§Úªºfile ¦W¬O Outstanding Payments  12-4-2012
run ¬O¥X²{run-time error '53': file not found   ½Ð°Ý¬O­þ¸Ì¥X¿ù¤F¡H
p »Ý­nSET¤°»ò¶Ü¡HDIM P AS STRING ¤§Ãþ¶Ü¡H

2¡^
Sub txet1()
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"
End Sub
¬O§_¦]¬°file ¦W¤Óªø©ÎªÌ¤°»ò­ì¦]¡A³o¥y¥X²{¿ù»~¡H©ÎªÌ¬O§_¦]¬°§Ú¦P®Écopy ¥t¥~¤@­ÓY server©Ò¥H¤£¦æ¡H

3¡^¥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

¦^´_ 8# kimbal


  Sub txet1()
  P = Format(Date, "m") & "-" & Format(Date, "d") & "-" & Format(Date, "Y")
VBA.FileCopy "Y:\2012\payment 2012\Outstanding payment ss 2012\Dec 2012\Outstanding Payments " & P & ".xlsm", "C:\users\patrick.hkg\desktop\outstanding payments.xlsm"
End Sub

§Úªºfile ¦W¬O Outstanding Payments  12-4-2012
run ¬O¥X²{run-time error '53': file not found

½Ð°Ý¬O­þ¸Ì¥X¿ù¤F¡H

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

¦^´_ 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

¥»©«³Ì«á¥Ñ 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

¦^´_ 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

¦^´_ 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

¦^´_ 4# die78325


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

TOP

        ÀR«ä¦Û¦b : ¡i®É¶¡¦pÆp¥Û¡j®É¶¡¹ï¤@­Ó¦³´¼¼zªº¤H¦Ó¨¥¡A´N¦pÆp¥Û¯ë¬Ã¶Q¡F¦ý¹ï·M¤H¨Ó»¡¡A«o¹³¬O¤@§âªd¤g¡A¤@ÂI»ù­È¤]¨S¦³¡C
ªð¦^¦Cªí ¤W¤@¥DÃD