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

½Ð±Ð¦p¦ó­×§ïµ{¦¡

¦^´_ 2# ©P¤j°¶
¸Õ¸ÕÃø¡I
  1. Private Sub ComboBox1_DropButtonClick()
  2.     Dim DataBook As Workbook, fs As String
  3.    
  4.     Application.ScreenUpdating = False
  5.     On Error Resume Next
  6.     fs = ThisWorkbook.Path & "\¸ê®Æ®w.xlsm"
  7.     Set DataBook = Workbooks(fs)
  8.    
  9.     On Error GoTo 0
  10.     If DataBook Is Nothing Then
  11.         Set DataBook = Workbooks.Open(fs)
  12.     End If
  13.    
  14.     With DataBook.Sheets("¤u§@ªí1")
  15.         ar = .Range(.[A4], .[A3].End(xlDown).Offset(, 5))
  16.         With ComboBox1
  17.             .ColumnCount = 3
  18.             .List = ar
  19.             .ColumnWidths = "0,30,40"
  20.         End With
  21.     End With
  22.    
  23.     DataBook.Close 0
  24.     Application.ScreenUpdating = True
  25. End Sub
½Æ»s¥N½X

TOP

¦^´_ 2# ©P¤j°¶
  1. Private Sub ComboBox1_DropButtonClick()
  2.     Dim DataBook As Workbook, fs As String
  3.    
  4.     Application.ScreenUpdating = False
  5.     On Error Resume Next
  6.     fs = ThisWorkbook.Path & "\¸ê®Æ®w.xlsm"
  7.     Set DataBook = Workbooks(fs)
  8.    
  9.     On Error GoTo 0
  10.     If DataBook Is Nothing Then
  11.         Set DataBook = Workbooks.Open(fs)
  12.     End If
  13.    
  14.     With DataBook
  15.         With Sheets("¤u§@ªí1")
  16.             ar = .Range(.[A4], .[A3].End(xlDown).Offset(, 5))
  17.             With ComboBox1
  18.                 .ColumnCount = 3
  19.                 .List = ar
  20.                 .ColumnWidths = "0,30,40"
  21.             End With
  22.         End With
  23.    
  24.         .Close 0
  25.     End With
  26.     Application.ScreenUpdating = True
  27. End Sub
½Æ»s¥N½X
µy¥[¾ã²zª©¡C

TOP

        ÀR«ä¦Û¦b : ¦Y­W¤F­W¡B­WºÉ¤Ü¨Ó¡A¨ÉºÖ¤FºÖ¡BºÖºÉ´d¨Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD