FreezePanes on a Row without using an ActiveWindow object

C

Chip Pearson

I believe that Freezing Panes is the only operation in VBA that requires you
to Select a cell, so no, you can't do it the way you want. You must use
Select.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email on the web site)
 
G

gimme_this_gimme_that

Is it possible to as make a FreezePanes assignment without using a
Select and an ActiveWindow?

Instead of:

rows("2:2").Select
ActiveWindow.FreezePanes = True

something like

Sheets("MySheet").Rows("2:2").FreezePanes = True
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top