+ Reply to Thread
Results 1 to 2 of 2

Freez Panes Automatically

  1. #1
    Registered User
    Join Date
    08-16-2011
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    10

    Freez Panes Automatically

    Hi
    Can Excel 2010 be set to automatically freeze panes and add filters to top row, when opening a new workbook or sheet???

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Freez Panes Automatically

    Hi,

    Yes of course. Just use the appropriate event.

    i.e. If by 'new workbook' you mean want this functionality when the workbook itself is opened for the first time, use the Workbook_Open event, or if you're creating a new workbook for the first time from a macro in another workbook, add the code below to the macro.
    The same goes for a 'new sheet'. If in the current workbook use either the sheet Activate event if the sheet exists , or if it is a new sheet added to the workbook use the .Add syntax or if copying a sheet the Sheets("Sheet1").CopyBefore:="Sheet1_Copy") syntax.

    Wherever you put the code first have the macro select the sheet and cell which you want to freeze and use this to freeze the panes
    Please Login or Register  to view this content.
    and for the filter
    Please Login or Register  to view this content.
    Last edited by Richard Buttrey; 01-17-2012 at 05:46 AM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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