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

[µo°Ý] ¦p¦ó¦C¥X¤å¥ó¦W?

[µo°Ý] ¦p¦ó¦C¥X¤å¥ó¦W?

¥ý Select  A2(³Ì«á¦bA2¶}©l¦V¤U¦C¥X¤å¥ó¦W)
§ä¨ì¤å¥ó2010¤º·Q­nªº¤å¥ó,¥Î "¦h­«¿ï¨úÀÉ®×" ¿ï¨ú·Q­nªº¤å¥óÀÉ®×,³Ì«á¥HSelect ªºA2¶}©l¦V¤U¦C¥X¤å¥ó¦W.

½Ð°Ý¤j¤j­Ì³o­Ó¦pªG¼g?
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

¦^´_ 4# basarasy
ActiveSheet.[A2].Offset(i - 1) = .SelectedItems(i)
§ï¦¨§@¥Î¤¤ªºÀx¦s®æ
ActiveCell.Offset(i - 1) = .SelectedItems(i)

TOP

¦^´_ 3# GBKEE


    ÁÂÁÂGBKEE¤j¤j.
    ¦ý¬O¥i¥H Sheets a1´N¦ba1¥X Sheets b2´N¦bb2¥X¶Ü?
eg.  Sheets a3  >run vba > a3-a10¥X¸ê®Æ¦W(¤å¥ó§¨ªº¦W or ¤å¥ó¦W)
   


50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2011-5-13 20:17 ½s¿è

¦^´_ 1# basarasy
  1. Option Explicit
  2. Sub Ex()
  3.     Dim i%
  4.     With Application.FileDialog(msoFileDialogOpen)
  5.         .AllowMultiSelect = True
  6.         .InitialFileName = "D:\TEST"       '½Ð ­×§ï¬°§Aªº¤å¥ó§¨
  7.         .Show
  8.         For i = 1 To .SelectedItems.Count
  9.             ActiveSheet.[A2].Offset(i - 1) = .SelectedItems(i)
  10.         Next
  11.     End With
  12. End Sub
½Æ»s¥N½X

TOP

¦^´_ 1# basarasy


    ¥i§_¤W¶Ç­Ó²©öÀÉ®×+»¡©ú ³o¼Ë¤ñ¸û¾A·í¡C¤£µM¥i¯à«ÜÃøÀ´±z­nªº

TOP

        ÀR«ä¦Û¦b : ¡i¥Í©R¦b©I§l¶¡¡j¦òªû»¡¡G¡u¥Í©R¦b©I§l¶¡¡C¡v¤HµLªkºÞ¦í¦Û¤vªº¥Í©R¡A§óµLªk¾×¦í¦º´Á¡AÅý¦Û¤v¥Ã¦í¤H¶¡¡C¬JµM¥Í©R¥h¨Ó³o»òµL±`¡A§Ú­Ì§óÀ³¸Ó¦n¦n¦a·R±¤¥¦¡B§Q¥Î¥¦¡B¥R¹ê¥¦¡AÅý³oµL±`¡BÄ_¶Qªº¥Í©R¡A´²µo¥¦¯uµ½¬üªº¥ú½÷¡A¬M·Ó¥X¥Í©R¯u¥¿ªº»ù­È¡C
ªð¦^¦Cªí ¤W¤@¥DÃD