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

¦p¦ó¸g¥ÑVBªº«ö¶s ¥Ñ¤@­ÓEXCELÀɮ׸ê®Æ¶×¤J¦Ü¥t¤@EXCEL

¦^´_ 10# Changbanana
¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub Ex()
  3.     Dim Source As String, Ar()
  4.     Source = Application.GetOpenFilename
  5.     With Workbooks.Open(Source)
  6.         Ar = .Sheets(1).UsedRange.Value
  7.         .Close
  8.     End With
  9.     With ThisWorkbook.Sheets("data").Range("A1").Resize(UBound(Ar), UBound(Ar, 2))
  10.         .Value = Ar
  11.         .Name = "Data"
  12.         .Select
  13.     End With
  14. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 11# GBKEE


·PÁÂG¤jªº¤j¤O¬Û§U
§Ú¬Q¤Ñ¦³¸Õ¹L§A¤§«e¶Kªºµ{¦¡½X
  1. Private Sub Data_Click()
  2. Dim Source As String, Ar()
  3.     Source = Application.GetOpenFilename
  4.     With Workbooks.Open(Source)
  5.         Ar = .Sheets(1).Range("A1:BN65536").Value
  6.         .Close
  7.     End With
  8.     With ThisWorkbook.Sheets("data").Range("A1").Resize(UBound(Ar), UBound(Ar, 2))
  9.         .Value = Ar
  10.         .Name = "data"
  11.      End With
  12.     End Sub
½Æ»s¥N½X
¤¤¶¡§Úª½±µÅª¨ú¤§«eÀÉ®×¥þ³¡Àx¦s®æ¤º®e
²{¦b§ï¦¨
  1. Private Sub Data_Click()
  2. Dim Source As String, Ar()
  3.     Source = Application.GetOpenFilename
  4.      With Workbooks.Open(Source)
  5.         Ar = .Sheets(1).UsedRange.Value
  6.         .Close
  7.     End With
  8.     With ThisWorkbook.Sheets("data").Range("A1").Resize(UBound(Ar), UBound(Ar, 2))
  9.         .Value = Ar
  10.         .Name = "data"
  11.      End With
  12. End Sub
½Æ»s¥N½X
±qRange("A1:BN65536")§ï¬°UsedRange
³o­Ó¤èªk§Ö¦h¤F
¦³¦¨¥\°õ¦æ ¯uªº«Ü·PÁ§A!!!!!

TOP

¤£«Øij¨Ï¥ÎUsedRange¡A¦pªG¹J¨ì¦³ªÅ¤@¤j¬qªºÀx¦s®æ¡A¨º¸ê®Æ´NµLªk§¹¾ã¶×¥X

TOP

¦^´_ 13# white5168
ÁÂÁ§Aªº«Øij¡A¤w­×¥¿¦^¨Ó
¦^´_ 11# GBKEE
¤S¦³­ÓºÃ°Ý

­Y¤£­n¨Ï¥Îvb«ö¶s

ª½±µÀ³¥ÎÀɮצW¦r(¦b¦P­Ó¸ê®Æ§¨¤U)

´N¥i¥H§â¸ê®Æ¶×¤J

³o¸Ó«ç»ò­×§ï©O?

ex:ÀɮצWºÙ¬°==>´ú¸Õ.xlsx

TOP

³o¬O§Ú´ú¸Õªºcode¦ý¦³¿ù»~
  1. Private Sub ´ú¸Õ()
  2. Dim Source As String, Ar()
  3.       Source = application.run(Activeworkbook.Name&"!´ú¸Õ")
  4.       With Workbooks.Open(Source)
  5.         Ar = .Sheets(1).Range("A1:D65536").value
  6.         .Close
  7.     End With
  8.     With ThisWorkbook.Sheets("´ú¸Õ").Range("A1").Resize(UBound(Ar), UBound(Ar, 2))
  9.         .value = Ar
  10.         .Name = "´ú¸Õ"
  11.      End With

  12.     MsgBox "´ú¸Õ¸ê®Æ¶×¤J¦¨¥\"
  13. End Sub
½Æ»s¥N½X
©Î¬O¥i§_¨Ï¥Î¦b¸ê®Æªí¤W³]©w¤@­ÓÀx¦s®æªº¦WºÙ¬°test
µM«áÀ³¥Î³o­Ó¦WºÙ ¥i¥H§âÀɮ׶פJ¶i¨Ó

TOP

        ÀR«ä¦Û¦b : ¤f»¡¦n¸Ü¡B¤ß·Q¦n·N¡B¨­¦æ¦n¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD