LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default 2k7: Setting print titles in VBA - bug or feature ?

A wierd one...

I have some code that defines print titles in a worksheet:

myWorksheet.PageSetup.PrintTitleRows = "$1:$6"

This works fine when running said code within an interactive session.

However I also have to run this macro while running Excel as a COM
object from another "master" process (say a whs script). In that case
the above code doesn't seem to work (no error but the print title is
simply flushed from the worksheet).

Out of despair I have also tried

myWorksheet.Parent.Names.Add Name:="Print_titles",
RefersToLocal:="MySheetName!$1:$6"

to no avail...

Any idea / suggestion would be most appreciated !

--alexT
 
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
Print Titles MM Excel Discussion (Misc queries) 1 February 11th 10 12:30 AM
Print Titles MM Excel Discussion (Misc queries) 0 February 10th 10 08:07 PM
Print Error Message: Print titles must be contiguous and complete sum1029 Excel Discussion (Misc queries) 1 September 16th 09 07:27 PM
Print Titles RobinT50 Excel Worksheet Functions 3 May 27th 08 03:02 PM
Print titles Roger Bedford Excel Discussion (Misc queries) 1 December 12th 04 08:35 AM


All times are GMT +1. The time now is 02:09 PM.

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"