file dengan ekstensi .docx, .doc, dan .rtf sekaligus ke pdf
Jika Anda ingin mengonversi banyak file extension doc, docx, rtf ke PDF sekaligus menggunakan makro di Microsoft Word, Anda bisa menggunakan kode VBA. Berikut adalah langkah-langkahnya: Buka Microsoft Word dan pastikan tab “Developer” sudah aktif. Jika belum, aktifkan melalui File > Options > Customize Ribbon dan centang “Developer”. Buka Editor VBA dengan menekan Alt + F11 . Buat Modul Baru : Klik pada proyek “Normal”. Pilih Insert > Module . Tempelkan Kode Makro berikut ke dalam modul: Sub BatchConvertDocToPDF() Dim objWord As Object Dim objDoc As Object Dim strFolder As String Dim strFile As String Dim strDocName As String Dim strPDFName As String ' Set the folder path strFolder = "C:\Path\To\Your\Word\Files\" ' Create a new Word application object Set objWord = CreateObject("Word.Application") objWord.Visible = False ' Loop through all Word files in the folder strFile = Dir(strF...