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

[µo°Ý] VBAµ{¦¡¤º®eCOPY¦Ü·sEXCEL°ÝÃD¸ß°Ý

[µo°Ý] VBAµ{¦¡¤º®eCOPY¦Ü·sEXCEL°ÝÃD¸ß°Ý

DEAR  ALL  ¤j¤j
1.¦p¹Ï¤@    ·s¼WEXCEL«á Âлs¤u§@ªí¤º®e¨ì·sEXCEL
  1.1 ½Ð°Ý¦p¦ó copy ­ìexcel¤º¤§ VBA µ{¦¡¦Ü·s¶}¤§EXCEL ¤º??
2.·Ð¤£§[½ç±Ð    THANKS *10000

¹Ï¤@
Sub ·s¼WEXCEL()
    Range("A1").Select
    Application.DisplayAlerts = False 'Ãö
    Workbooks.Add
    ChDir "\\Pcbfs02\C701\²£³]¦­·|·|ij°O¿ý¿é¤J¨t²Î"
    ActiveWorkbook.SaveAs Filename:= _
        "\\Pcbfs02\C701\²£³]¦­·|·|ij°O¿ý¿é¤J¨t²Î\¦U°Ï¦­·|DATA\PD KPI (ÁZ®Ä)" & Sheet1.Range("AG1") & " .xls", FileFormat:= _
        xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
        , CreateBackup:=False
    ActiveWindow.Close
    Range("A1").Select
End Sub

Sub Âлs¶g¸ê®Æ®w()
    '¥þ­±©ÊÅܧó¦WºÙ¥i¥Î½s¿è¤º¤§¨ú¥N¥\¯à¤@¦¸ALL¸m´«
    Workbooks.Open Filename:="\\Pcbfs02\C701\²£³]¦­·|·|ij°O¿ý¿é¤J¨t²Î\¦U°Ï¦­·|DATA\PD KPI (ÁZ®Ä)" & Sheet1.Range("AG1") & " .xls" '»Ý¨DEXCEL ADDRESS-¦Û¦æÅܧó.   
    Windows("PD KPI (ÁZ®Ä).xls").Activate '¦Ü­ìÂлsPDM¸ê®Æ®w.xlsÀÉ-¦WºÙ¨Ì»Ý¨DÅܧó
    Sheets("¦­·|DATA").Cells.Copy 'COPY TBDD2060 ALL Àx¦s®æ-¦WºÙ¨Ì»Ý¨DÅܧó
    Windows("PD KPI (ÁZ®Ä)" & Sheet1.Range("AG1") & " .xls").Activate '¦Ü´ú¸Õªí³æ.xlsÀÉ-¦WºÙ¨Ì»Ý¨DÅܧó
    Sheets("SHEET1").Select '¦ÜTBDD2060¤u§@ªí-¦WºÙ¨Ì»Ý¨DÅܧó
    Range("A1").Select '¦ÜA1Àx¦s®æ
    ActiveSheet.Paste 'Âлs   
    Windows("PD KPI (ÁZ®Ä).xls").Activate '¦ÜÂлsPDM¸ê®Æ®w.xlsÀÉ-¦WºÙ¨Ì»Ý¨DÅܧó
    Sheets("¦­·|DATA").Select '¦Ü«Ê­±¤u§@ªí-¦WºÙ¨Ì»Ý¨DÅܧó
    Range("A1").Select '¦ÜA1Àx¦s®æ
    Windows("PD KPI (ÁZ®Ä)" & Sheet1.Range("AG1") & " .xls").Activate '¦Ü´ú¸Õªí³æ.xls-¦WºÙ¨Ì»Ý¨DÅܧó
    Sheets("Sheet1").Select '¦Ü¥Ø¿ý"¤u§@ªí-¦WºÙ¨Ì»Ý¨DÅܧó
    Range("A1").Select '¦ÜA1Àx¦s
    Application.DisplayAlerts = False 'Ãö
    ActiveWorkbook.Save
    ActiveWindow.Close
End Sub
ù

¥»©«³Ì«á¥Ñ ªÅ¥Õªº¼Ö³¹ ©ó 2018-3-24 00:32 ½s¿è

¤£ª¾¹D³o¼Ëªº«Øij¬O§_¥i¥HÀ°¤W§Aªº¦£
§A¥ýťť¬Ý§a
1.¦pªG¬O±`±`­n¨Ï¥Î¨ìªº¥¨¶°
«Øij±N¦³¦¹model¥¨¶°ªºÀÉ®×¥t¦s¦¨"¼W¯q¶°"
µM«á¦Aexcel±Ò°Ê¼W¯q¶°¡A³o¼Ë¤£ºÞ¦b­þ­ÓÀɮ׳£¯à¨Ï¥Î³o­Ó¬¡­¶Ã¯ªº¥¨¶°
¤£»Ý­n¦AÃB¥~¦h¥X½Æ»sªº³o­Ó°Ê§@

2.¥¨¶°ªºModule¥i¥H¶i¦æ¶×¥X¤Î¶×¤J¡C

3.²Ä¤T­Ó¤èªk¬O¤ñ¸û¶§¬Kªº¤èªk¡A
§Aª½±µ¥Î¥¨¶°¥ý½Æ»s­ì©lÀɮפ@¥÷(¥Nªí¥¨¶°³£·|¤@°_½Æ»s)¡AµM«á²M°£±¼©Ò¦³¤º®e«á¦A¶i¦æ§Aªº¸ê®Æ¿é¤J¡C

4.­è­èª¦¤åª¦¨ìªº·L³n©x¤è»¡©ú
https://support.office.com/zh-tw/article/%E5%B0%87%E5%B7%A8%E9%9B%86%E6%A8%A1%E7%B5%84%E8%A4%87%E8%A3%BD%E5%88%B0%E5%8F%A6%E4%B8%80%E5%80%8B%E6%B4%BB%E9%A0%81%E7%B0%BF-13c0938b-8432-4259-9177-a71f7e626de0

¶}±ÒVB½s¿è¾¹«á¡Aª½±µ¥Î·Æ¹«§âmodule1±q¬¡­¶Ã¯1«ö¦í¥ªÁä©Ô¨ì¬¡­¶Ã¯2©ñ¶}´N·|ª½±µ½Æ»s

³o¬O§Ú·Q¨ì±o¥H¤W¤èªk
¦pªG¦³¨ä¥L¤j¤j¦³¨ä¥Lªº¤èªk©Î¬O¥H¤W¦³¿ù»~¡A·Ð½Ð§iª¾¤p§Ì¡A
³o¬O§Úªº¾Ç²ß¾÷·|:)

TOP

dear ªÅ¥Õªº¼Ö³¹ ¤j¤j
·PÁ«ü¾É   thanks*10000
ù

TOP

        ÀR«ä¦Û¦b : µêªÅ¦³ºÉ¡D§ÚÄ@µL½a¡AµoÄ@®e©ö¦æÄ@Ãø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD