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 / Copilot Studio / Need to add some autom...
Copilot Studio
Unanswered

Need to add some automation in an Excel Spreadsheet

(1) ShareShare
ReportReport
Posted on by 4

Hello,

 

I have an Excel spreadsheet in which I would like to add some automation so that when some data is entered in Sheet A it is automatically copied in Sheet B, and can be copied in Sheet C when requested.

 

Also, I would like that when data is deleted from Sheet A, it also deletes in Sheet B and can't be available in Sheet C.

 

I also want that when a row is added in Sheet A, it's automatically added in Sheet B; and one can't add a row in Sheet B manually.

 

Thanks for any help

Categories:
I have the same question (0)
  • Verified answer
    MParikh Profile Picture
    313 Super User 2025 Season 2 on at

    ⚡️ Approach: Using Excel Formulas and VBA

    1️⃣ Sheet B auto-syncs with Sheet A
    In Sheet B:
    • Use formulas to mirror Sheet A’s data.
    • Example: In cell A1 of Sheet B:
     
    =IF(SheetA!A1<>"", SheetA!A1, "")
    • Drag this formula across and down to cover the same area as Sheet A.
    • This way, Sheet B always mirrors Sheet A automatically—no manual edits!
     Prevent editing in Sheet B:
    • Protect the sheet so users can’t manually add rows or edit cells.
    2️⃣ Deletion syncs automatically
    • Because Sheet B uses formulas, if data is deleted in Sheet A, it’s instantly gone in Sheet B.
    3️⃣ Sheet C – Controlled Copy
    For copying to Sheet C only when requested, use a macro (VBA):
     
    Sub CopyToSheetC()
        Dim wsA As Worksheet, wsC As Worksheet
        Set wsA = Sheets("SheetA")
        Set wsC = Sheets("SheetC")
        
        wsC.Cells.ClearContents 'Optional: Clear old data
        wsA.UsedRange.Copy Destination:=wsC.Range("A1")
    End Sub
    
    1.  Assign this macro to a button in the Excel ribbon or a shape in the sheet.
    2.  This ensures data in Sheet C only updates on demand.
    4️⃣ Block Manual Row Adds in Sheet B
    • Since Sheet B is formula-driven and protected, users can’t add rows manually.
    Like the answer if you were able to solve by doing this. Good Luck!

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 > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 265 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 240 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard