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

[µo°Ý] °õ¦æ¦n´X¦¸³£¨S°ÝÃD,¦ý©¿µM¤µ¤Ñ...

[µo°Ý] °õ¦æ¦n´X¦¸³£¨S°ÝÃD,¦ý©¿µM¤µ¤Ñ...

Sub saveas()
ActiveWorkbook.saveas FileName:="C:\Users\Administrator\Google ¶³ºÝµwºÐ\¦ô»ù³æ\103¦~¦ô»ù³æ\11¤ë¥÷\" & Format(Range("j5"), "EMMDD") & Range("C6") & (Range("K6") & "-" & Range("J27") & ".xls")
MsgBox "ÀɮצWºÙ " & Format(Range("j5"), "EMMDD") & Range("C6") & (Range("K6") & "-" & Range("J27")) & " ¥t¦s¦¨¥\!!"
End Sub

¤µ¤Ñ°õ¦æµ{¦¡«á´N¸õ¥X
¦n©_©Ç³á,¤w¸g°õ¦æ¦n´X¤Ñ¨S°ÝÃD¤F,¤µ¤Ñ©¿µM¸õ³o­Ó°T®§....:Q :Q :Q
¦U¦ì°ª¤â¥i¥HÀ°§Ú¸Ñµª¤@¤U¶Ü? ÁÂÁÂ~

¥»©«³Ì«á¥Ñ GBKEE ©ó 2014-11-12 15:45 ½s¿è

¦^´_ 1# carus1009



¦Û¦æÀˬd¬O§_¦³¹Ï¥Ü¤¤ªº¿ù»~
  1. Sub save_as()
  2. 'ActiveWorkbook.saveas Filename:="C:\Users\Administrator\Google ¶³ºÝµwºÐ\¦ô»ù³æ\103¦~¦ô»ù³æ\11¤ë¥÷\" & Format(Range("j5"), "EMMDD") & Range("C6") & (Range("K6") & "-" & Range("J27") & ".xls")
  3. MsgBox "C:\Users\Administrator\Google ¶³ºÝµwºÐ\¦ô»ù³æ\103¦~¦ô»ù³æ\11¤ë¥÷\" & Format(Range("j5"), "EMMDD") & Range("C6") & (Range("K6") & "-" & Range("J27") & ".xls")
  4. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

§ÚÀˬd¹L¹Ï¥Ü¤¤ªº¿ù»~¤F,§Úµo²{©Ò¦³ªº¸ê®Æ§¨³£¬O°ßŪ,¦ý§Ú¨S¿ìªkÃö±¼°ßŪ,¤Ä±¼ÁÙ¬O¦Û¤v·|¼g¦^¥h,§Ú§ï¦¨³Ì°ò¥»ªºC:\ ©ÎD:\ ¤]¬O¸õ¥X¦P¼Ëªº°T®§...³o¬O§Úªº¹q¸£¤¤¬r¤F?

¦ý§Ú¤£¶]µ{¦¡¤@¼Ë¥i¥H¥Î¤â°Ê¦sÀÉ°Ú....

TOP

§Ú§ä¨ì­ì¦]¤F,°ÝÃD¤w¸Ñ¨M~·PÁª©¥DÀ°¦£!!:D

TOP

À³¬OÄæ¦ìÀx¦s®æ¤º®eÂ泬ݤ£¨ìªº±±¨î½X©Ò­P,  
«Øij¥ý±N­n¨Ï¥ÎªºÄæ¦ìtrim±¼,  ¦ý¦³®É¤£¨£¦³®Ä.
³o¬OExcel±`¹J¨ìªº°ÝÃD.

TOP

Sub saveas()
ActiveWorkbook.saveas FileName:="C:\Users\Administrator\Google ¶³ºÝµwºÐ\¦ô»ù³æ\103¦~¦ô»ù³æ\11¤ë¥÷\" & Format(Range("j5"), "EMMDD") & Range("C6") & (Range("K6") & "-" & Range("J27") & ".xls")
MsgBox "ÀɮצWºÙ " & Format(Range("j5"), "EMMDD") & Range("C6") & (Range("K6") & "-" & Range("J27")) & " ¥t¦s¦¨¥\!!"
End Sub

¤W­Ó°ÝÃD¦]¬°§Úªº¬YÀx¦s®æ©M¨ä¥¦ªºÀx¦s®æ¦X¨Ö°_¨Óªº¦r¼Æ¤Óªø¤F,©Ò¥H¶W¹L128¦r¤¸¤F....¤~¶]¥X³o¼Ëªº°ÝÃD

¤£¦n·N«ä¤p§Ì³Ìªñ¤~¶}©l¾Ç²ßVBAªºµ{¦¡,ÁÙ¤£¤Ó¼ô±x»yªkªº®M¥Î

ÁÙ¦³­Ó¤p°ÝÃD·Q½Ð±Ð¦U¦ì¥ý¶i,§Ú·Q§â¤W­±¬õ¦âªº³¡¥÷,§ï¦¨·í«eªºÀɮ׶}±Òªº¸ô®|¤£ª¾¹D¸Ó«ç»ò¼g¤~¦n,¸Õ¤F¦n´XºØ¤è¦¡³£®M¤£¶i¥h....

·PÁÂ~:)

TOP

Sub test()
aa = ThisWorkbook.Path
Set d1 = Workbooks(aa).Worksheets("¦ô»ù³æ-§tµ|")
Workbooks.Open FileName:="C:\Users\Administrator\Google ¶³ºÝµwºÐ\¦æµ{ªí\¶}·|¸ê®Æ.xls"
Workbooks("¶}·|¸ê®Æ.xls").Activate
Set d3 = Workbooks("¶}·|¸ê®Æ.xls").Worksheets("103¦~11¤ë¥÷")
d3.Range("a1").Select
Selection.End(xlDown).Select
d3.Range("a" & ActiveCell.Row + 1).Value = d1.Range("j5")
d3.Range("c" & ActiveCell.Row + 1).Value = d1.Range("c6")
d3.Range("d" & ActiveCell.Row + 1).Value = d1.Range("k6")
d3.Range("e" & ActiveCell.Row + 1).Value = 1
d3.Range("f" & ActiveCell.Row + 1).Value = d1.Range("j27")
d3.Range("g" & ActiveCell.Row + 1).Value = d1.Range("c7")
Workbooks("¶}·|¸ê®Æ.xls").Close savechanges:=True
MsgBox ("³B²z§¹¦¨")
End Sub

À³¸Ó¬O³o¬q¤~¹ï.SORRY~

TOP

        ÀR«ä¦Û¦b : §g¤l¦p¤ô¡AÀH¤è´N¶ê¡AµL³B¤£¦Û¦b¡C
ªð¦^¦Cªí ¤W¤@¥DÃD