For example, I click cell F4, then freeze the sheet to make top 3 rows and left 5 columns visible.
How to do it with VBA?
Edit: By the way, I have For Each WS in WB.Worksheets loop, I want to do it for each worksheet.
For example, I click cell F4, then freeze the sheet to make top 3 rows and left 5 columns visible.
How to do it with VBA?
Edit: By the way, I have For Each WS in WB.Worksheets loop, I want to do it for each worksheet.
Last edited by VAer; 11-04-2024 at 09:03 AM.
Please Login or Register to view this content.
Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.
By the way, I have For Each WS in WB.Worksheets loop, how to change ActiveWindow with WS. I forgot to mention that I want to do it for each worksheet.
Last edited by AliGW; 11-04-2024 at 09:20 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead. Please review the forum guidelines.
Please Login or Register to view this content.
@VAer
Administrative Note re. Forum Guideline #2:
Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter and rarely necessary.
If you are responding out of sequence, it is usually enough just to mention the helper's user name (e.g @AliGW).
If you do need to quote, limit the quoted section just to the section to which you wish to draw your helper's attention or a direct question to which you wish to respond.
For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
@bakerman2
Thanks. It works.
You're welcome and thanks for rep+.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks