Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Freeze Panes with Object Model

Is the Excel application.Visible?
Is the workbook visible?

Workbooks("Book1.xls").Windows(1).Visible = True
Workbooks("Book1.xls").Activate
Worksheets("Sheet1").Activate
Rows(1).Select
ActiveWindow.FreezePanes = true


Regards,
Tom Ogilvy


"John Renkar" wrote in message
...
I am using Access to export a query to an Excel Workbook.
I then need to format the workbook from Access. I am able
to do everything I need except freexe the top row.

The online help suggests using:

Workbooks("BOOK1.XLS").Worksheets("Sheet1").Activa te
ActiveWindow.FreezePanes = True

I get a run time error '438':
Object doesn't support this property or method

Is there another way to accomplish this?

Thank you in advance

John



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 freeze panes won't freeze top row only macbone2002 Excel Discussion (Misc queries) 3 April 22nd 23 02:07 AM
VBA: Where to find Excel Object model? N. Foldager Excel Discussion (Misc queries) 13 February 6th 05 06:43 PM
"Excel.Application" Object Model Shaker Charts and Charting in Excel 2 January 9th 05 10:24 AM
Does MS Query have an object model Frank[_12_] Excel Programming 2 July 10th 03 10:54 PM
Accessing the VBA project object model Tom Ogilvy Excel Programming 0 July 8th 03 02:47 PM


All times are GMT +1. The time now is 06:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"