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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Excel sheet copy as pi...
Power Automate
Unanswered

Excel sheet copy as picture script

(0) ShareShare
ReportReport
Posted on by

Hello Everyone,

 

In excel sheet we have a functionality of "Copy as picture" on selected cells.
I wanted integrate the same feature in automation by using some scripts.
I have an excel which has both text data and graphs kept on sheet1.
I tried below script below which will only get the text data and convert it to image. [The actual operation output from Microsoft excel application is providing a result image which contains both text and graphs].

 

 

 

function main(workbook: ExcelScript.Workbook) {
 var apdexWorkSheet = workbook.getWorksheet("sheet1");
 apdexWorkSheet.setVisibility(ExcelScript.SheetVisibility.visible);
 var tableImage = apdexWorkSheet.getRange("A1:I81").getImage();
 var imageData = 'data:image/png;base64,${tableImage}';
 return imageData;
}

 

 

 

could you please help me help me to automate it with right script.

Thanks and regards,
Suraj Jannu

Categories:
I have the same question (1)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard