Announcements
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!
Hi @sdfjlkfs
It is working for me
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
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 sheetSet objWorksheet = objWorkbook.Sheets(1)objWorksheet.Activate'Freeze the first rowobjExcel.ActiveWindow.SplitRow = 1objExcel.ActiveWindow.FreezePanes = True'Save the changes and close the workbookobjWorkbook.SaveobjWorkbook.Close'Quit ExcelobjExcel.Quit'Set objects to nothingSet objWorksheet = NothingSet objWorkbook = NothingSet objExcel = Nothing
Here %NewVar2% is a variable passed from power automate flow which is the file path of excel file 🙂
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 410
Vish WR 289
David_MA 282 Super User 2026 Season 1