اذهب الي المحتوي
أوفيسنا

تعديل علي كود استعراض ملفات من الكمبيوتر


الردود الموصى بها

السلام عليكم ورحمة الله وبركاته  اخواني اعضاء ومشرفي المنتدي الكرام

اريد التعديل علي  هذا الكود  لكي يستعرض لي كل الملفات وليس المجلدات فقط

يوجد مرفق للتوضيح 

 

    With Application.FileDialog(4)
        .AllowMultiSelect = False
        .Title = "Dialogue Caption/Title"
 
        If .Show = -1 Then
                   
          Me.name_folder = .SelectedItems.Item(1)
        
                
Dim sFilePath$
sFilePath = Me.name_folder
Me.pate = Split(sFilePath, "\")(UBound(Split(sFilePath, "\")))


    
        End If
   End With

 

 

 

 

doctor_101.rar

رابط هذا التعليق
شارك

وعليكم السلام ورحمة الله وبركاته

 

جرب غير هذا السطر :

With Application.FileDialog(4)

بالتالي:

With Application.FileDialog(1)

 

رابط هذا التعليق
شارك

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information