VBA listing and viewing help

uc bucuk

New Member
Joined
Apr 21, 2022
Messages
6
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Ekli excelde PDF dosyalarını bulmamı sağlayan bir form var.

Her gün dosyanın bulunduğu yerde arşivden D1 ile D36 arasında pdf dosyası çok zaman alıyor.

Sizden adındaki D1 ve D36 adından bahseden her şey listesindeki listelemeniz veya bu dosyaları (T:\AB\8_MOULD\MOULD_INF\1_MOULD_PDF\DAY) adındaki bir arama incelemeniz ve isminden bahseder. sorun.

VBA Code:
Seçenek Açık

Özel Alt KomutButton1_Click()
    Dize Olarak Pdf_File Dim
    
    Pdf_File = Me.TextBox1
    
    Application.ScreenUpdating = Yanlış
    Me.WebBrowser1.Navigate "T:\BA\8_MOULD\MOULD_INF\1_MOULD_PDF"
    Eğer Pdf_File <> "" O zaman
        Me.WebBrowser1.Document.Write "<HTML><Body><embed src=""" & Pdf_File & _
                                      """ width=""%100"" height=""%100"" /></Body></HTML>"
        Ben.WebBrowser1.Yenile
    Bitir
    Application.ScreenUpdating = Doğru
Alt Alt

Alt LİSTE()
    dosya = "T:\BA\8_MOULD\MOULD_INF\1_MOULD_PDF"
    CreateObject("Shell.Application").Open
Alt Alt

Özel Alt Etiket1_Click()

Alt Alt

Özel Alt UserForm_Initialize()
    Me.Caption = "Kullanıcı Formu PDF"
Alt Alt

Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)

Alt Alt
[/KOD]
 

Attachments

  • vba.JPG
    vba.JPG
    118.7 KB · Views: 9

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
There is a form in the attached excel that allows me to find PDF files.

It takes a lot of time to find the files of pdfs between D1 and D36 from the archive where there are thousands of files every day.

What I want from you is to list the files between cells D1 and D36 that change daily, or to copy these files to a folder named (T:\AB\8_MOULD\MOULD_INF\1_MOULD_PDF\DAY) and only display that folder to overcome the problem.
 
Upvote 0

Forum statistics

Threads
1,224,862
Messages
6,181,461
Members
453,043
Latest member
Sronquest

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top