A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Dear Ashish,
Good day! Thank you for posting to Microsoft Community. We are happy to help you.
It seems you want select a column using column name but not column ID using Office scripts.
We would also love to help you on this question, unfortunately our Community Forum does not handle scenarios which include Excel Scripts! Considering your question involves Excel Scripts, we suggest you post a new thread in Excel Office Scripts - Microsoft Q&A, which is the best channel to handle such scenarios. This is a dedicated channel for the issues and questions which include Excel Scripts. The members and moderators in this community platform are specialized to find the related answer to your concern. I hope experts from that side will help you with your scenario.
Thanks for your understanding and cooperation. Stay safe and healthy always!
With Sincerest Regards,
Edwine | Microsoft Community Moderator
***Note: In the event that you're unable to reply to this thread, please ensure that your Email address is verified in the Community Website by clicking on Your Account Name > "My Profile" > "Edit Profile" > Add your Email Address > tick "Receive email notifications" checkbox > click on "Save".***