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

¦³Ãö¥t¦s·sÀÉ°ÝÃD..

¦³Ãö¥t¦s·sÀÉ°ÝÃD..

½Ð°Ý¦U¦ìª©¤j¦p½d¨Ò..
§Ú­n¥t¦s·sÀɦÓÀɦW·|¦Û°Ê¥ÎÀx¦s®æB1»PB3Àx¦s®æ¤º®e§@¬°ÀɦW
«ü©w¸ô®|¬°D¼Ñ 001.rar (6.48 KB)
¤£ª¾VBA­n¦p¦ó¼g½Ð¦U¦ìª©¤j«ü¾ÉÁÂÁÂ...

¦^´_ 10# GBKEE


    ·PÁ  GBKEE ª©¤j«ü±Ð¡A Object¬ÛÃö¤@ª½³£¬O¤p§Ì§Ú¤ñ¸û®zªº¶ô¡AÁ٧Ʊ栠ª©¤j¯à¤£§[«ü¥¿¨Ã´£ÂI¡A¦]¬°»¡¹ê¦bªº¬ÛÃö±Ð§÷¹ê¦b¦³­­¡C

TOP

¦^´_ 13# gca78000


    ­nÂI¿ïLISTBOX1ªº¤é´Á«á¦A«ö«ö¶s
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 12# gca78000


    MyDate = ListBox1.Text

TOP

¦^´_ 11# Hsieh


    ÁÂÁ¤j¤j«ü¾Éªþ¥ó§ÚÁÙµLªk¤U¸ü
¦ý¨Ìµ{¦¡½X«o·|¥X¿ù

TOP

¥»©«³Ì«á¥Ñ Hsieh ©ó 2010-6-7 18:13 ½s¿è

§Úªº¬Ýªk¼Ó¥D¦ü¥G¬O·QÅý¤u§@ªí¥t¦s¦¨XLSÀÉ®×
·s¼W¤@¦Û­qªí³æ,ªí³æ¤¤³]¸m¤@­Ó²M³æ¤è¶ô¤Î¤@­Ó«ö¶s
ªí³æ¼Ò²Õµ{¦¡
  1. Private Sub CommandButton1_Click()
  2. Dim MyDate As String
  3. MyDate = ListBox1.Text
  4. ActiveSheet.Copy
  5. ActiveWorkbook.SaveAs "D:\" & ActiveSheet.[B2] & MyDate & ".xls"
  6. End Sub

  7. Private Sub UserForm_Initialize()
  8. With ActiveSheet
  9. For Each a In .Range(.[B3], .[B65536].End(xlUp))
  10.    ListBox1.AddItem a.Text
  11. Next
  12. End With
  13. End Sub
½Æ»s¥N½X
¤@¯ë¼Ò²Õµ{¦¡½X
  1. Sub OpenForm() '§Ö³tÁäCtrl+m
  2. UserForm1.Show
  3. End Sub
½Æ»s¥N½X
¦pªþ¥ó 001.rar (12.96 KB)
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2010-6-7 16:30 ½s¿è

¦^´_ 7# victorl
ª½±µ±NÀɮ׽ƻs§Y¥i ¤£¥²¶}¶}ÃöÃö
  1. Sub Ex()
  2. Dim D
  3. Set D = CreateObject("Scripting.FileSystemObject")
  4. ActiveWorkbook.Save
  5. D.CopyFile ActiveWorkbook.FullName, "D:\" & Range("B1") & Range("B3") & ".xls"
  6. End Sub
½Æ»s¥N½X

TOP

¦^´_ 8# gca78000


    ¦A½Ð°Ý¤j¤j¤@¤U.
¦p¥t¦s·sÀÉ«á­n§â¤ºªº vbaµ{¦¡½X¤]®ø°£­n¦p¦ó¼g
½Ð«ü¾ÉÁÂÁÂ...

TOP

¦^´_ 7# victorl


    ÁÂÁ¤j¤j«ü¾É¤w¸g¥i¥H..¤p§Ì¨ü¯q­ê²L.
¦A½Ð°Ý¤@¤U¦pÀx¦s®æB3¨ìB33­n¦Û°Ê¨q¥X¤é´Áªí³æÅý§Ú¥i¥H¬D¿ï­n¦p¦ó¼g..
½Ð«ü¾ÉÁÂÁÂ

TOP

½Ð°Ý§A¬O·Q­n¥t¦s·sÀɦA¶}±Ò­ìÀɮ׶Ü?
½Ð°Ñ¦Ò
    Orig = ThisWorkbook.Path & "\" & ThisWorkbook.Name '¨ú±o­ìÀɮ׸ô®|¤Î¦WºÙ
    ActiveWorkbook.SaveAs Filename:="D:\" & Range("B1").Value & Range("B3").Value & ".xls" ' ¨Ì­n¨DB1&B3¤º®e¥t¦s·sÀÉ
    newfile = ActiveWorkbook.Name
    Workbooks.Open Filename:=Orig ' ¶}±Ò­ìÀÉ®×
    Workbooks(newfile).Close ' Ãö³¬¥t¦s¤§ÀÉ®×
µù. ¥t¦s·sÀɤ§«eªºÅܧ󤣷|¦s¦b©ó­ìÀɮ׳á

TOP

        ÀR«ä¦Û¦b : ¤â¤ß¦V¤U¬O§U¤H¡A¤â¤ß¦V¤W¬O¨D¤H¡F§U¤H§Ö¼Ö¡A¨D¤Hµh­W¡C
ªð¦^¦Cªí ¤W¤@¥DÃD