Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default formulas including ; character

The ";" character is a local list separator. The international list
separator is "',". So either use

Cells(1, 1).Formula = "=IF(C30,1,0)"

or

Cells(1, 1).FormulaLocal = "=IF(C30;1;0)"

but this depends on the local version of your "IF" formula

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"Tomasz Lelek" wrote in message
...
Hello, I encouterd problem (Aplication defined or object defined error)
while trying to insert formula from macro to newly created template
worksheet. Problem occurs not always, but with formulas including

character
";", like IF(a;b;c). Code line looks like this one:
Cells(1, 1).Formula = "=IF(C30;1;0)", and it doesnt matter if I put value
or ommit formula expression.
Please help.




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
Cell including text and multiple formulas? Shaggyjh Excel Discussion (Misc queries) 4 April 21st 09 03:37 PM
Copying and using formulas including worksheet names Isissoft Excel Discussion (Misc queries) 3 May 5th 07 10:12 PM
How can I convert a character string that contains letters & numbers "£2,456.99 (including flights)" into a numeric? ship Excel Worksheet Functions 4 April 3rd 07 02:35 PM
Dynamic formulas including worksheet references lars22222 Excel Worksheet Functions 1 July 26th 05 02:33 PM
Multiple formulas including INDIRECT Gizmo Excel Worksheet Functions 4 December 21st 04 07:07 PM


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