Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Ole Automation and Excel 2007 footer

Till Excel 2003 the following row worked correctly:
Sheet.PageSetup.CenterFooter:='Print from...'; (Delphi 2009)
But now create an Exception irreparable Error!!
I've see in the VBA help the procedure is changed in Excel 2007. I've tried
various system but ever same error.

Can you help me?
Tks in advance.
Robert
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default Ole Automation and Excel 2007 footer

With Sheets("SheetName").PageSetup

.CenterFooter = "test"

End With

works in Excel 2007

"Press YES if this post helps"

"Greborio Robert" wrote:

Till Excel 2003 the following row worked correctly:
Sheet.PageSetup.CenterFooter:='Print from...'; (Delphi 2009)
But now create an Exception irreparable Error!!
I've see in the VBA help the procedure is changed in Excel 2007. I've tried
various system but ever same error.

Can you help me?
Tks in advance.
Robert

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Ole Automation and Excel 2007 footer

Tks Abdul this answer get me exact idea for write the procedure for Delphi
2009:

Sheet.Item['SheetName'].PageSetup.CenterFooter:='Print from...';

The MSOffice help is not very clear about this change. A three of all object
will be more interesting.

"Abdul" wrote:

With Sheets("SheetName").PageSetup

.CenterFooter = "test"

End With

works in Excel 2007

"Press YES if this post helps"

"Greborio Robert" wrote:

Till Excel 2003 the following row worked correctly:
Sheet.PageSetup.CenterFooter:='Print from...'; (Delphi 2009)
But now create an Exception irreparable Error!!
I've see in the VBA help the procedure is changed in Excel 2007. I've tried
various system but ever same error.

Can you help me?
Tks in advance.
Robert

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
How do I add a hyperlink to the footer in Excel 2007 Jarose23225 Excel Discussion (Misc queries) 1 September 23rd 08 03:02 PM
Excel 2007: Add year to footer Petemeister2k Excel Discussion (Misc queries) 2 May 30th 08 08:10 PM
Can you put a standard footer on Excel 2007 spreadsheets? Hellmut Excel Discussion (Misc queries) 10 April 8th 08 12:18 AM
How to add a footer to an Excel 2007 worksheet elton99999 Excel Discussion (Misc queries) 4 January 23rd 08 12:19 AM
Excel 2007 :Standard Footer Excel_Oz Excel Worksheet Functions 1 October 16th 07 11:21 PM


All times are GMT +1. The time now is 07:47 AM.

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

About Us

"It's about Microsoft Excel"