Power Apps & Power Automate輕鬆學 / 文章

Power Automate 電腦版教學 一個動作 Excel 轉換成 PDF

發表日期:01/15/2025

教學影片連結

https://www.youtube.com/watch?v=CeyvCjxufVI

vbs程式碼如下,自己改檔案路徑

Dim Excel
Dim ExcelDoc

'Opens the Excel file'
Set Excel = CreateObject("Excel.Application")
Set ExcelDoc = Excel.Workbooks.open("C:\Users\yangchisen\Downloads\數位課程課後問卷(1-8).xlsx")

'Creates the pdf file'
Excel.ActiveSheet.ExportAsFixedFormat 0, "C:\Users\yangchisen\Downloads\數位課程課後問卷(1-8).pdf" ,0, 1, 0,,,0

'Closes the Excel file'
Excel.ActiveWorkbook.Close
Excel.Application.Quit