Macros and Freeze Frame problem

ironsides

Well-known Member
Joined
Aug 12, 2002
Messages
575
I have several macros and a freeze frame line between lines 3 and 4 in an Excel sheet. The macro buttons are across lines 1 and 2. When I activate a macro having 2 or 3 sorts the freeze frame line disappears and the data moves up to line 1 and 2 under the buttons. Did I do something wrong. How can I fix this?
 

Some videos you may like

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Tom Urtis

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,224
The answer might lie in the code itself, if it involves unfreezing the pane, or deleting rows, or who knows what. If you are unfamiliar with VBA code, try posting the macro code and a description of what should occupy rows 1, 2, 3, and 4 before and after the macro runs. Hard to tell from a distance without knowing a few more details.
 

Fryer Tuck

Board Regular
Joined
Mar 20, 2002
Messages
64
I agree w/ Tom, its hard to tell without eyeballing the code. However, it sounds like you dont have data in the first to rows, but the sort includes those rows. (I assume this on your saying that data winds up in those rows.) Try limiting your sort to starting with row 3.

F.T.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,841
Messages
5,598,388
Members
414,234
Latest member
grlevesq

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top