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

Application.FileDialog °ÝÃD

Application.FileDialog °ÝÃD

­YªG¥Îµ{¦¡¶}±ÒÀÉ®×, ¦p¦ó¥[¤W±ø¥ó, ¥²»Ý­n¶}±ÒÀÉ®×, ¤£¥i¥H«ö¨ú®øµ²§ôµøµ¡
With Application.FileDialog(msoFileDialogOpen)
        .FilterIndex = 2
        .AllowMultiSelect = false
        If .Show = -1 Then .Execute
    End With

¥t¥~¥ÎWorkbooks.open ¥i¥H³]©w read only  ©Î local = true
¦ý¥ÎApplication.FileDialog ÁÙ¥i¥H¦³³oÃþ³]©w¶Ü?
½Ð«ü±Ð

¦^´_ 1# enoch
  1. Option Explicit
  2. Sub Ex()
  3.     With Application.FileDialog(msoFileDialogOpen)
  4.         .FilterIndex = 2
  5.         .AllowMultiSelect = False
  6.         Do
  7.         Loop Until .Show = -1
  8.         Workbooks.Open .SelectedItems(1), ReadOnly:=True
  9.     End With
  10. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¦n¨Æ­n´£±o°_¡A¬O«D­n©ñ±o¤U¡A¦¨´N§O¤H§Y¬O¦¨´N¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD