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

[µo°Ý] Ãö©óWorkSheets ¦WºÙÂ^¨ú

[µo°Ý] Ãö©óWorkSheets ¦WºÙÂ^¨ú

µ{¦¡¦p¤U:
  1. Sub FnGetSheetsName()

  2.     Dim mainworkBook As Workbook

  3.     Set mainworkBook = ActiveWorkbook



  4.     For i = 2 To mainworkBook.Sheets.Count
  5.     mainworkBook.Sheets("Sheet1").Range("A" & i - 1) = mainworkBook.Sheets(i).Name
  6.     Next i


  7.     k = 1
  8.     Do While Not Cells(k, 1) = ""
  9.     k = k + 1
  10.     Loop
  11.     k = k - 1
  12.         
  13.         
  14.     For y = 0 To k - 1
  15.     For x = 1 To 20
  16.     Cells(y + 1, 1).Copy Cells(x + k + y * 20, 1)
  17.     Next
  18.    
  19.    
  20. Next



  21. End Sub
½Æ»s¥N½X
¶]¥X¨Óªºµ²ªG:



¤£¹L§Ú·Q­nªº³¡¤À¬O­«Âг¡¤À¡A¦Ó¤£»Ý­n¤W¬q¥ý¦C¤@¦¸¥þ³¡ªºsheet¦WºÙ¡A¤~¶}©l¶]§Ú­n­«½Æªº¦a¤è

·Q½Ð°Ý¸Ó«ç»ò§ï¼g³o¬qµ{¦¡½X
ÁÂÁ¦U¦ìªºÀ°¦£!!!

±z­nWorkSheets ¦WºÙÂ^¨ú, ´`Àô¤@¦¸¤£´N¥i¥H¤F¶Ü,¦ý©¹¤U¬Ý¨ì±z­n­«Âг¡¤À,³o´N¤£²z¸Ñ¤F,¦]¦b¦P¤@WB¤º¤£·|¦³­«ÂÐWorkSheets ¦WºÙ.

²³æªº debug. print ©Ò¦³WorkSheets ¦WºÙ.
sub zz()
for each s in sheets
  debug.print s.name
next
end sub
«ö ctrl+g ¬Ý¬Ýµ²ªG

TOP

±z­nWorkSheets ¦WºÙÂ^¨ú, ´`Àô¤@¦¸¤£´N¥i¥H¤F¶Ü,¦ý©¹¤U¬Ý¨ì±z­n­«Âг¡¤À,³o´N¤£²z¸Ñ¤F,¦]¦b¦P¤@WB¤º¤£·|¦³ ...
ikboy µoªí©ó 2015-8-17 17:02



    ¦n³á¡A§Ú¦³¦A¸Õ¬Ý¬Ý¡Aµo²{¤U­±µ{¦¡ªº½T¬O°ÝÃD©Ò¦b¡CÁÂÁ§A~~   

TOP

        ÀR«ä¦Û¦b : ±o²z­nÄǤH¡A²zª½­n®ð©M¡C
ªð¦^¦Cªí ¤W¤@¥DÃD