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: 5
Default Language portability problems when setting LeftHeader text from external app (=non-VBA)

When you set the LeftHeader property of the PageSetup object, you can apply
bold styles by adding special formatters.
F.i.: ActiveSheet.PageSetup.LeftHeader = "Dit is &Ueen test&U" & Chr(10) &
"Pagina: &P".

In VBA this works regardless which language version of Excel you have
installed.

However when I call this from an external application through its OLE
interface, then it does matter which language version of Excel you have
installed!

On a Dutch installation &U is ignored, it needs to be &O (= onderstrepen)
and on a German version of Excel it will display the time two times, as &U
stands for 'Uhrzeit'. The help of these installation contains two tables one
for headers entered by VBA and headers entered manually. It appears that if
you try to set headers and footers in Excel from an external application you
need to use these 'manual' tables.

Is there a way to force Excel to interpret these format codes the same way
when called from VBA?

I am also wandering how it is possible that there is a difference between
VBA and an external app, as both will communicate through the OLE interface
which cannot determine from which environment it was called? Is there
perhaps some preprocessor at work that translates these values in a
transparent way when calling into Excel?

Kind regards,

Danny.


 
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
Language setting problem with spellcheck Preston Hamlin Excel Discussion (Misc queries) 0 September 6th 08 09:06 PM
change language setting using VBA code ub Excel Worksheet Functions 0 April 3rd 07 05:34 PM
Language default setting not responding accordingly YQM Excel Discussion (Misc queries) 0 November 16th 05 04:36 AM
Date Language setting Office user Excel Worksheet Functions 0 August 24th 05 08:56 AM
Problems with the buttons language filo666 Excel Programming 1 April 28th 05 07:47 AM


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