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 Automate
Unanswered

Get color of cell

(1) ShareShare
ReportReport
Posted on by 2
is it possible to get the colour of a cell in excel, from power automete desktop?
Categories:
I have the same question (0)
  • trice602 Profile Picture
    15,402 Super User 2025 Season 2 on at
    Hi,
     
    Yes you can do that with the following steps:
     
    • Open your Power Automate Desktop flow.
    • Use the "Launch Excel" action to open an existing workbook or create a new one.
    • Use the "Set color of cells in Excel worksheet" action in advanced section:
      • Select the target cell or range.
      • Specify the formatting type, such as font color, background color, or other properties.
    • Save and close the Excel file.
     

    ------------------------------------------------

     

     

    ⭐ If this was helpful, please like and mark as a verified answer to help others find this too!

     

     

    Always glad to help! 💯💯💯💯💯

     

    Tom

     

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

  • trice602 Profile Picture
    15,402 Super User 2025 Season 2 on at
    Sorry - just realized it is GET not SET.  You can use a Python script in PAD like this:
     

    from openpyxl import load_workbook



    # Load the workbook and select the sheet

    workbook = load_workbook("%ExcelInstance2%")

    sheet = workbook.active  # Replace with sheet name if needed



    # Get the cell

    cell = sheet["A1"]



    # Get the fill color

    fill_color = cell.fill.start_color.rgb  # Hex color code (ARGB format)



    # Display the color

    print(f"The color of cell A1 is: {fill_color}")
  • CU17011800-0 Profile Picture
    2 on at
    what I need is to get the background colour of a cell.
     
     
    I would need to get the yellow colour from column A, and then the blue colour.

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard