Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Put a formula to a cell with macro and it doesent calculate. (Excel localisation problem?)

Hello NG,

I want to put a formula to a cell:
oWorksheet.Cells(2, 2).FormulaR1C1 =
"=VLOOKUP(RC[-1],Table2!A:B,2,FALSE)"

If I excecute this line and look at the cell than there is written
"#Name?". If I click in the cell I see the formula translated to
German. (The German word for VLOOKUP is SVERWEIS.) If I press Return
the correct value is displayed. The formula is still in the cell. The
result of the formula is written in the sheet.

How can I refresh the cells automitcally?

I think the problem is the translation to the German Excel language. If
I take this formula:
oWorksheet.Cells(2, 2).FormulaR1C1 = "=A1*100"

The correct value is displayed immediatly...


Regards

Peter

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Put a formula to a cell with macro and it doesent calculate. (Excel localisation problem?)

It was a fault in the formula. If I press in a cell return, Excel doese
correct it.

Correct formula: "=VLOOKUP(RC[-1],Table2!C1:C2,2,FALSE)"

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
Localisation problem with pivot tables Daniel Hilgarth Setting up and Configuration of Excel 2 May 29th 08 07:04 AM
On excel, my formula will not calculate and add info into cell Kara D. Sanders Excel Worksheet Functions 3 May 14th 06 08:54 PM
Localisation decimal problems Mats Samson Excel Programming 2 February 18th 06 03:25 PM
Localisation problem?? Mats Samson Excel Programming 0 February 16th 06 08:21 PM
Excel/macro Formula Problem! nic17 Excel Programming 5 June 3rd 04 06:22 PM


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