web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

convert excel to pdf

(0) ShareShare
ReportReport
Posted on by 67

Hello there,

 

can anyone suggest to me the flow that I use to convert excel to pdf? 

 

so I have created an ms form and the form asks to attach an excel file then I am taking that excel file into my power to automate the flow and then want to convert it to a pdf file. does anyone have any suggestions? 

 

Thank you 

I have the same question (0)
  • werkbook Profile Picture
    36 on at

    @geothermusa 

     

    The following is one possible solution:

    Convert Excel to PDF_Power Automate.jpg

     

    You will need to make use of the action Run VBScript to execute the following code:

    Dim Excel
    Dim ExcelDoc
    
    'Opens the Excel file'
    Set Excel = CreateObject("Excel.Application")
    Set ExcelDoc = Excel.Workbooks.open("%ExcelFile%")
    
    'Creates the pdf file'
    Excel.ActiveSheet.ExportAsFixedFormat 0, "%OutputPDFFile%" ,0, 1, 0,,,0
    
    'Closes the Excel file'
    Excel.ActiveWorkbook.Close
    Excel.Application.Quit

     

    Do remember to use the action Set variable to assign the full path of your Excel file to %ExcelFile%, and to assign the full path of the output PDF file to %OutputPDFFile%.

     

    To learn more, please visit VBScript snippets (werkbook.co)

  • geothermusa Profile Picture
    67 on at

    Dear Werkbook,

     

    I am using the power automated platform as explained in the description. That would be great if you help me with the actual flow. 

     

    Thank you

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 411

#2
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 291

Last 30 days Overall leaderboard