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

[µo°Ý] ¦p¦ó±NExcelªí®æ¤º¸ê®ÆÂ^¨ú¨ì¥t¤@­ÓExcel³øªí¤º

[µo°Ý] ¦p¦ó±NExcelªí®æ¤º¸ê®ÆÂ^¨ú¨ì¥t¤@­ÓExcel³øªí¤º

¦U¦ì¤j¤j ·Q½Ð°Ý±NExcelªí®æ¤º¸ê®ÆÂ^¨ú¨ì¥t¤@­ÓExcel³øªíªº¤èªk
999.rar (7.78 KB)

  1. Sub nn()
  2. Dim Ay()
  3. With Workbooks.Open(ThisWorkbook.Path & "\999.xls")
  4.   With .ActiveSheet
  5.   For Each a In .Range(.[A1], .[A65536].End(xlUp))
  6.      If IsDate(a) Then
  7.      ar = Array(a.Offset(5).Value, a.Value, a.Offset(1).Value, a.Offset(3).Value)
  8.      ReDim Preserve Ay(s)
  9.      Ay(s) = ar
  10.      s = s + 1
  11.      End If
  12.   Next
  13.   End With
  14.   .Close
  15. End With
  16. Sheets("Sheet1").[A2].Resize(s, 4) = Application.Transpose(Application.Transpose(Ay))
  17. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

·PÁÂHsieh ªO¤j
µ{¦¡°õ¦æok
·Q½Ð°Ý¤U¦Cµ{¦¡ªº²[¸q
ar = Array(a.Offset(5).Value, a.Value, a.Offset(1).Value, a.Offset(3).Value)
Sheets("Sheet1").[A2].Resize(s, 4) = Application.Transpose(Application.Transpose(Ay))

TOP

        ÀR«ä¦Û¦b : ­n¤ñ½Ö§ó¨ü½Ö¡D¤£­n¤ñ½Ö§ó©È½Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD