Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.dotnet.languages.vb,microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Problem with Excel Header/Footer from .NET ???

The following code :

Public Class c
Shared Sub main()
Dim obj As Object
Dim wbk As Object
Dim wks As Object
obj = CreateObject("Excel.Application")
'bj.Visible = True
wbk = obj.WorkBooks.Add
wks = wbk.WorkSheets("Feuil1")
obj.visible = True
wks.Cells(1, 1).Value = "A"
wks.PageSetup.CenterFooter = "Page &N"
MsgBox(wks.PageSetup.CenterFooter)
obj = Nothing
End Sub
End Class

The &N code should display the page number. Instead it shows the workbook
file name ? The same code works in Excel VBA. Looks like some kind of
interaction with Excel/.NET.

Is this a known problem ? I'm using a French version of Excel in case it
matters...

TIA for any advice...


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 Header and Footer BBZ Excel Discussion (Misc queries) 1 July 29th 08 05:27 PM
header & Footer in excel Mona Excel Discussion (Misc queries) 0 September 5th 06 02:18 PM
Excel Header and Footer Dhinesh Excel Discussion (Misc queries) 4 February 23rd 06 10:59 PM
excel footer / header help Jason - MR New Users to Excel 4 July 15th 05 08:01 PM
Problem Copying Header/Footer Capt'n Roy Excel Programming 1 October 13th 03 02:38 AM


All times are GMT +1. The time now is 04: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"