Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2008

Tip: Looking for answers? Try searching our database.

Freezepane in new excel application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Keith74 - 31 Jan 2008 11:29 GMT
Hi All

I have a workbook that opens a new instance of excel and i need to
freeze a row in it. The problem is i've no idea how to set the new
excel application to be the activewindow so i can freeze the row. Any
thoughts?

cheers

Keith
Jim Cone - 31 Jan 2008 12:33 GMT
xlApp.Visible = True
Signature

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)

"Keith74"
wrote in message
Hi All
I have a workbook that opens a new instance of excel and i need to
freeze a row in it. The problem is i've no idea how to set the new
excel application to be the activewindow so i can freeze the row. Any
thoughts?
cheers
Keith

Keith74 - 31 Jan 2008 13:22 GMT
Hi Jim

this is the code i've been using

   xlExcel.Visible = True
   xlExcel.UserControl = True
   wbWorkBk.Sheets(1).Activate
   wbWorkBk.Sheets(1).Range("B7").Select
   wbWorkBk.Sheets(1).Range("B7").Activate

   ActiveWindow.FreezePanes = True
(just freezes the panes in the callng workbook)

AppActivate isn't much help either
Jim Cone - 31 Jan 2008 13:41 GMT
Try...
  xlExcel.Windows(1).FreezePanes = True
Signature

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)

"Keith74"
<keith.willis@sbjbc.co.uk>
wrote in message
Hi Jim
this is the code i've been using

   xlExcel.Visible = True
   xlExcel.UserControl = True
   wbWorkBk.Sheets(1).Activate
   wbWorkBk.Sheets(1).Range("B7").Select
   wbWorkBk.Sheets(1).Range("B7").Activate

   ActiveWindow.FreezePanes = True
(just freezes the panes in the callng workbook)
AppActivate isn't much help either

Keith74 - 31 Jan 2008 13:52 GMT
Cheers Jim

Just came up with

xlexcel.windows(wbWorkBk.name).FreezePanes = true

before reading yours.

thanks for the help

cheers

keith
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.