+ Reply to Thread
Results 1 to 7 of 7

How to freeze pane?

  1. #1
    Forum Contributor VAer's Avatar
    Join Date
    09-10-2016
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    782

    How to freeze pane?

    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.

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Prof Plus 2019
    Posts
    6,989

    Re: How to freeze pane?

    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.

  3. #3
    Forum Contributor VAer's Avatar
    Join Date
    09-10-2016
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    782

    Re: How to freeze pane?

    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.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Prof Plus 2019
    Posts
    6,989

    Re: How to freeze pane?

    Please Login or Register  to view this content.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2412 (Windows 11 24H2 64-bit)
    Posts
    88,707

    Re: How to freeze pane?

    @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.

  6. #6
    Forum Contributor VAer's Avatar
    Join Date
    09-10-2016
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    782

    Re: How to freeze pane?

    @bakerman2

    Thanks. It works.

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Prof Plus 2019
    Posts
    6,989

    Re: How to freeze pane?

    You're welcome and thanks for rep+.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Freeze pane
    By kiranpreet kaur in forum Excel General
    Replies: 2
    Last Post: 06-06-2019, 01:49 PM
  2. Freeze Pane Help
    By mhitomi_7 in forum Excel General
    Replies: 1
    Last Post: 01-14-2016, 12:20 PM
  3. [SOLVED] freeze pane in VBA
    By cmccabe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2014, 10:04 AM
  4. [SOLVED] Freeze pane
    By Nick London in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2006, 07:10 AM
  5. Freeze pane
    By Marisa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-11-2006, 07:55 AM
  6. Freeze pane
    By CraigMc in forum Excel General
    Replies: 2
    Last Post: 09-05-2005, 10:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1