Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default excel: international formula names in c#

Hello,

It is possible to put formula to active cell programaticaly.
But, I have a problem with formula names.

Here a snipped:

activeCell.Value2 = "=Count(A1:A20)";

This does work only with english excel.

Is there any posibility to put formulas in international name ?
I would like to make my AddIn working not depending of OS.

Thanks

Frank


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default excel: international formula names in c#

I think you might be wrong, tried this with a Norwegian copy of Excel 2003:

Sub Test1()
ActiveCell.Value2 = "=Count(A1:A20)"
End Sub

B1 was the active cell and the formula in B1 became: =ANTALL(A1:A20) which
is Norwegian equvivalent to =COUNT(A1:A20), and the formula works.

BTW: when you insert a formula with VBA should you not use
ActiveCell.Formula = "=Count(A1:A20)" ?


HTH
knut

"Frank M. Walter" skrev i melding
...
Hello,

It is possible to put formula to active cell programaticaly.
But, I have a problem with formula names.

Here a snipped:

activeCell.Value2 = "=Count(A1:A20)";

This does work only with english excel.

Is there any posibility to put formulas in international name ?
I would like to make my AddIn working not depending of OS.

Thanks

Frank




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default excel: international formula names in c#

Hello Knut,
yes, as macro it works.

But as AddIn in C# nope.
It gives #NAME
as return

Frank

"Knut" schrieb im Newsbeitrag
...
I think you might be wrong, tried this with a Norwegian copy of Excel 2003:

Sub Test1()
ActiveCell.Value2 = "=Count(A1:A20)"
End Sub

B1 was the active cell and the formula in B1 became: =ANTALL(A1:A20) which
is Norwegian equvivalent to =COUNT(A1:A20), and the formula works.

BTW: when you insert a formula with VBA should you not use
ActiveCell.Formula = "=Count(A1:A20)" ?


HTH
knut

"Frank M. Walter" skrev i melding
...
Hello,

It is possible to put formula to active cell programaticaly.
But, I have a problem with formula names.

Here a snipped:

activeCell.Value2 = "=Count(A1:A20)";

This does work only with english excel.

Is there any posibility to put formulas in international name ?
I would like to make my AddIn working not depending of OS.

Thanks

Frank






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default excel: international formula names in c#

OK, sorry dont know anything bout C#


knut
"Frank M. Walter" skrev i melding
...
Hello Knut,
yes, as macro it works.

But as AddIn in C# nope.
It gives #NAME
as return

Frank

"Knut" schrieb im Newsbeitrag
...
I think you might be wrong, tried this with a Norwegian copy of Excel
2003:

Sub Test1()
ActiveCell.Value2 = "=Count(A1:A20)"
End Sub

B1 was the active cell and the formula in B1 became: =ANTALL(A1:A20)
which is Norwegian equvivalent to =COUNT(A1:A20), and the formula works.

BTW: when you insert a formula with VBA should you not use
ActiveCell.Formula = "=Count(A1:A20)" ?


HTH
knut

"Frank M. Walter" skrev i melding
...
Hello,

It is possible to put formula to active cell programaticaly.
But, I have a problem with formula names.

Here a snipped:

activeCell.Value2 = "=Count(A1:A20)";

This does work only with english excel.

Is there any posibility to put formulas in international name ?
I would like to make my AddIn working not depending of OS.

Thanks

Frank








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
International number formatting in Excel 2007 Albert[_3_] Excel Discussion (Misc queries) 1 April 19th 08 01:40 PM
International Excel 4 Macro [email protected] Excel Discussion (Misc queries) 1 August 11th 06 02:59 PM
International issue (Excel XP) Hans Knudsen[_2_] Excel Programming 4 October 28th 05 03:29 PM
international excel issues Anders Lindén Excel Programming 10 June 20th 05 03:08 PM
International Bug in Excel Solver Michael[_40_] Excel Programming 3 June 3rd 05 03:20 PM


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