Skip to main content
Community site session details

Community site session details

Session Id : 51sScdARDrHELG64U1c1yC
Power Automate - General Discussion
Unanswered

If there are differences, transcribe and color flow

Like (0) ShareShare
ReportReport
Posted on 1 Sep 2023 22:29:14 by

Compare column A in the A excel file with column A in the B excel file. If there is a difference, transcribe the information from the A excel file to the B excel file. I need to know how to color the cells in the transcribed B excel file.

 

botamoti_0-1693606890391.png

  • Nived_Nambiar Profile Picture
    17,929 Super User 2025 Season 2 on 02 Sep 2023 at 03:02:51
    Re: If there are differences, transcribe and color flow

    Hi @botamoti 

     

    to color a cell use the below office script which needs input the cell address which needs to be colored.

    /**
     * This script sets the fill color of the used range to a color.
     */
    function main(workbook: ExcelScript.Workbook, celladdress: string) {
        // Get the used range of the current worksheet.
        let currentSheet = workbook.getActiveWorksheet();
        let usedRange = currentSheet.getRange(celladdress);

     

        // Get the RangeFill object.
        let fill = usedRange.getFormat().getFill();

     

        // Set the fill color to green.
        fill.setColor("yellow");
    }
     
    Use action in power automate to do this
    Nived_Nambiar_0-1693623740150.png

     

    Currently office script change the cell color to yellow, you can change that accordingly as per your requirement.

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. 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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete