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

¦p¦ó±N¤U­±ªºµ{¦¡½X§ï¦¨¥u¶×¦b¦P¤@­Ó¸ê®Æªí

¦p¦ó±N¤U­±ªºµ{¦¡½X§ï¦¨¥u¶×¦b¦P¤@­Ó¸ê®Æªí

¥»©«³Ì«á¥Ñ qwern ©ó 2012-7-8 10:01 ½s¿è

¥D­n­n°µªº¤º®e¬O¡A¬ù¦³2000¦hªº¬Û¦P®æ¦¡ªºexcelÀɮסA­n¶×¤J¦P¤@­Óexcel¸Ì­±¡A
¦ý¬O¤S¤£·Q­n¥L¨C¦¸¶×¤J®É³£¤À§O¶×¤J¦¨¤@­Ó·sªº¸ê®Æªí¡A
·Q­n¥L­«¤W¤@­Ó¶KÂIªº³Ì¤U­±Ä~Äò±N¤U±N¤@­Ó¸ê®Æ©¹¤U¶K¤U¥h¡C
¤§«e¦³¦³¬Ý¹L¥t¥~¤@­Ó¬O¶K¶i¨Ó¬° ¤£¦P¤À­¶ªº¡A¦ý¬O§Ú«ç»ò§ï¥L³£µLªk¥u³æ¯Â¦b¤@­Ó¤À­¶¸Ì­±¡A©Ò¥H·Q­n½Ð°Ý³o­Ó°ÝÃD¡C

¥H¤Uªþ¥ó¬°¦X¨Ö¥¨¶°¸ò­n¶×¤Jªº¸ê®Æ ¦ý¤£ª¾¹D«ç»ò§â¨º­Ó¦X¨Öªº¥¨¶°§ï¦¨¥u¶×¤J¦¨¤@­Ó¤u§@ªí¡A¶×¤J«á¡A¥LÁÙ¬O·|¬Ý¦³´X­ÓÀÉ®×´N¤À¦¨´X­Ó¤u§@ªí
¦Ó¥BÁÙ¦³¤@­Ó¤pºÃ°Ý¨C­ÓÀɮפº¸ê®Æªº¤ñ¼Æ¤£¦P¡A¥L·|¤£·|¤Ö§ì¨ì¤§Ãþªº?


javascript:;

¦X¨Ö«á¥u­n¦b¦P¤@­Ósheet.rar (564.34 KB)

¦X¨Ö«á¥u­n¦b¦P¤@­Ósheet

¦^´_ 1# qwern


    ³oùجO¤@¯ë°Ï,¬°¤°¦ó¤j®a³£¤£¨Ìª©¤jªº³W©w©O??:@

TOP

¦^´_ 2# chen_cook


    ©êºp...¤w­×§ï¡A³o¼ËÀ³¸Ó¥i¥H¤F

TOP

¤W­±ªºÀɮ׬O¦X¨Ö«á·|¤À¦¨«Ü¦h­Ó¤À­¶¡A§Ú§Æ±æ¥L¥i¥H¤£­n¤À¶}

TOP

¥»©«³Ì«á¥Ñ hugh0620 ©ó 2012-7-9 17:31 ½s¿è

¦^´_ 4# qwern

  ¸Õ¸Õ¤U­±ªº¼gªk~ ¨Ì§A¤W¸üªº¸ê®ÆÁÙ¼¶¼g~ ±N¸ê®Æ§¨¤¤ªºEXCELÀɶצb¦P¤@­Ósheet¤¤~
  A3="ÀɮצWºÙ"
  B3=Äæ¦ìA
  A3&B3¬O­n¦³Äæ¦ì¦WºÙ­ò
  1. Application.Calculation = xlCalculationManual
  2. Dim Ar()
  3. With Application.FileDialog(msoFileDialogFolderPicker)
  4.     If .Show = 0 Then Exit Sub  ' ­Y¬O¨S¦³¿ï¨ú¸ê®Æ§¨¸ô®|¡A´N¸õ¥Xµ{§Ç
  5.     Sheet1.Rows("4:1048576").ClearContents
  6.     fd = .SelectedItems(1)
  7.     If .ButtonName = "½T©w" Then
  8.     fs = Dir(fd & "\*.xls")
  9.         Do Until fs = ""
  10.         fds = fd & "\" & fs
  11.             With Workbooks.Open(fds)
  12.                  A = .Sheets(1).Range("A65536").End(xlUp).Row
  13.                  BN = .Sheets(1).Name
  14.                  .Sheets(1).Range("A1:CW" & A).Copy Sheet1.Range("B1048576").End(xlUp).Offset(1, 0)
  15.                  .Close 0
  16.             End With
  17.             C1 = Sheet1.Range("A1048576").End(xlUp).Offset(1, 0).Row
  18.             C2 = Sheet1.Range("B1048576").End(xlUp).Row
  19.             Sheet1.Range("A" & C1 & ":A" & C2) = BN
  20.             fs = Dir
  21.         Loop
  22.     End If
  23. End With
  24. Application.Calculation = xlCalculationAutomatic
½Æ»s¥N½X
¾Ç²ß¤~¯à´£¤É¦Û¤v

TOP

¦^´_ 4# qwern
Àɮ׳£©ñ¦b¦P¤@­Ó¸ê®Æ§¨¤º
  1. Sub ex()
  2. fs = Dir(ThisWorkbook.Path & "\*.xls*")
  3. Do Until fs = ""
  4. If fs <> ThisWorkbook.Name Then
  5.   With Workbooks.Open(ThisWorkbook.Path & "\" & fs)
  6.      .Sheets(1).UsedRange.Copy ThisWorkbook.Sheets(1).Cells(Rows.Count, 1).End(xlUp).Offset(1)
  7.   .Close 0
  8.   End With
  9. End If
  10. fs = Dir
  11. Loop
  12. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

Hsieh ¶W¯Åª©¥D ·PÁ¡A¦n¹³¦¨¥\¤F
VBA¦V«e½Ä ·PÁ  ³o¤èªk§ÚÁÙ¦b´ú¸Õ¤¤

TOP

¦^´_ 7# qwern


    Hsieh ¤j¤jªº¼gªk¬Oª½±µ±N¸ê®Æ§¨¤¤©Ò¦³ªºexcel¸ê®Æ¶×¦b¤@°_~
    §Úªº¼gªk¤]¬O¤§«e¦U¤j¤j±Ðªº~ ©Ò¥H¬Ý°_¨Ó¤£·|®t²§¤Ó¤j~
    ¦b¶×¾ã¸ê®Æ®É~ ¬OÀ°§A¦Ò¶q¨ì~ ±N¨C¤@­ÓÀɮ׶פJ®É~ ²K¥[¤W­ÓÀɮתº¦WºÙ~
    ³o¼Ë·|¤è«K¨Ï¥ÎªÌ¦b¸ê®Æ¦³ºÃ°Ý®É~ ¯à°÷¤ñ¸û§Ö³t§ä­Ó¬O­þ¤@­ÓÀɮתº¸ê®Æ~ ­þÃäµo¥Í°ÝÃD
   
    ·íµM~ ³o¤]¬O­n¬Ý§A¦Û¤vªº»Ý¨D~ ¬O¤£¬O¦³»Ý­n~
     §Q¥Î Hsieh ¤j¤jªº¼Ò¦¡¥i©µ¦ù¦Û¤v»Ý­nªºµ²ªG~
¾Ç²ß¤~¯à´£¤É¦Û¤v

TOP

®¦®¦  §Úµo²{Hsieh¤j¤jªº¤èªk¦b¶ñ¤J²Ä517­ÓexcelÀɮɷ|¦³°ÝÃD¡A¥L»¡½Æ»s®æ¦¡¤£¦P¬O§_­n¶K¤W

TOP

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