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?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Tom Urtis

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,270
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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,026
Messages
5,835,022
Members
430,332
Latest member
Charly_Moon

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