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 Platform Community / Forums / Power Automate / How to send keys in Ex...
Power Automate
Answered

How to send keys in Excel - ALT + W + F + R

(0) ShareShare
ReportReport
Posted on by 16

Hi there, I'm trying to freeze the top row in Excel from PAD. Tried various ways to send ALT + W + F + R keystrokes to Excel without success. What's the right way to do that? Any help would be appreciated!

I have the same question (0)
  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @sdfjlkfs 

     

    It is working for me 

    Nived_Nambiar_0-1679835580806.png

     

    You can send key to specific cell, here i am sending key to A1 cell.

     

    Hope it helps 🙂

    Mark it as solution if it resolves your query

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @sdfjlkfs 

     

    I would recommend running vbs script as well to freeze first row

     

    Set objExcel = CreateObject("Excel.Application")
    Set objWorkbook = objExcel.Workbooks.Open("%NewVar2%")

    'Activate the first sheet
    Set objWorksheet = objWorkbook.Sheets(1)
    objWorksheet.Activate

    'Freeze the first row
    objExcel.ActiveWindow.SplitRow = 1
    objExcel.ActiveWindow.FreezePanes = True

    'Save the changes and close the workbook
    objWorkbook.Save
    objWorkbook.Close

    'Quit Excel
    objExcel.Quit

    'Set objects to nothing
    Set objWorksheet = Nothing
    Set objWorkbook = Nothing
    Set objExcel = Nothing

     

    Here %NewVar2%  is a variable passed from power automate flow which is the file path of excel file 🙂

     

    Hope it helps 🙂

     

  • sdfjlkfs Profile Picture
    16 on at

    Thank you Nived! It works 😉

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 463

#1
Valantis Profile Picture

Valantis 463

#3
11manish Profile Picture

11manish 264

Last 30 days Overall leaderboard