Hi
Can Excel 2010 be set to automatically freeze panes and add filters to top row, when opening a new workbook or sheet???
Hi
Can Excel 2010 be set to automatically freeze panes and add filters to top row, when opening a new workbook or sheet???
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
and for the filter![]()
Please Login or Register to view this content.
![]()
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 iconbelow the post.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks