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

Ãö©ó¥ÎgetopenfilenameŪ¨úxls¤å¥óªº°ÝÃD

Ãö©ó¥ÎgetopenfilenameŪ¨úxls¤å¥óªº°ÝÃD

¦U¦ì¤j¤j±z¦n~
¤p§Ì·Q¥Îgetopenfilename¿ï¾Ü¶}±Ò¤@xls¤å¥ó
µM«á¿ï¾Ü¶}±ÒŪ¨ú¤§¤å¥ó¼g¤J¸ê®Æ¨ì²{¦³ªºsheet1¤¤
¨ÃÃö³¬Åª¨ú¸ê®Æ¤§xls¤å¥ó¯d¤U²{¦³¸ê®Æsheet1ªºexcelÀÉ®×
½Ð°Ý¦U¦ì¤j¤j¸Ó¦p¦ó¼gŪ¨ú¤§³t«×¤~·|¤ñ¸û§Ö©O?

  1. Dim fs As String

  2. fs = Application.GetOpenFilename

  3. With Workbooks.Open(fs)

  4. .Sheets("test1").Copy after:=ThisWorkbook.Sheets(Sheets.Count)

  5. .Close

  6. End With
½Æ»s¥N½X

TOP

¦^´_ 2# oobird

·PÁ¤j¤jÀ°§U~·Q½Ð°Ý¦³µL¤èªk¥i±N¸ê®Æª½±µ«þ¨©¦Ü°õ¦æ¦¹µ{¦¡½Xªºsheet¤¤
¦]¬°²{¦b°õ¦æªº¸Ü¬O¥X²{¦b©ósheet1¤§«á~·s¼W¤@­Ósheet¦Ó¶i¦æ«þ¨©
¥i§_¦b°õ¦æ«áª½±µ½Æ»s¦Ü°õ¦æªºsheet¤¤©O? ·PÁÂ!

TOP

¦^´_ 3# bubaby0608
  1. Sub Ex()
  2.     Dim fs As String
  3.     fs = Application.GetOpenFilename
  4.     If fs <> "False" Then
  5.         With Workbooks.Open(fs)
  6.             .Sheets(1).UsedRange.Copy ThisWorkbook.Sheets(1).[a1]
  7.             .Close
  8.         End With
  9.     End If
  10. End Sub
½Æ»s¥N½X

TOP

¦^´_ 4# GBKEE

·PÁ¤j¤j¦^µª~¨ü±Ð¤F!:)

TOP

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