Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
If I'm writing a macro to check for the formula in a cell, which proporty should I be using to be internationally portable. Say if I write the macro in English, I should be using the formula proporty and not the FormulaLocal property right? Thanks Andy |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You have to write the macro in English in xl97 and later.
Use formula if you are going to pass it a string that would work in an English Version of Excel. Use formulalocal if you will pass it a string that will work in your regional version. This includes use of list separators (comma versus period as an example). -- Regards, Tom Ogilvy "Andy" wrote in message om... Hi, If I'm writing a macro to check for the formula in a cell, which proporty should I be using to be internationally portable. Say if I write the macro in English, I should be using the formula proporty and not the FormulaLocal property right? Thanks Andy |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a feeling that you might have misundertood what
I meant. What I want to accomplish is to override the Application_BeforeDoubleClick(..) function to find out what formula (if any) the double-clicked cell contains. So ' ' the prototype for status routine is ' Function status(i as integer, j as integer) as integer ' if InStr(activeCell.Formula, "=status(") = 1 Then MsgBox("It's a Cell containing a call to the function status(i,j)"); Else MsgBox("It's Not") End If In this example, I should be using the .Formula proporty and not the .FormulaLocal proporty correct? Because .FormulaLocal proporty would return something different depending on which region Excel is. Correct? eg, in Europe .FormulaLocal would return something like "=status(1;2)" and in the US, it would return something like "=status(1,2)". So is it correct to say that .Formula is more portable? Andy "Tom Ogilvy" wrote in message ... You have to write the macro in English in xl97 and later. Use formula if you are going to pass it a string that would work in an English Version of Excel. Use formulalocal if you will pass it a string that will work in your regional version. This includes use of list separators (comma versus period as an example). -- Regards, Tom Ogilvy "Andy" wrote in message om... Hi, If I'm writing a macro to check for the formula in a cell, which proporty should I be using to be internationally portable. Say if I write the macro in English, I should be using the formula proporty and not the FormulaLocal property right? Thanks Andy |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Consult the help. It is pretty self explanatory.
-- Regards, Tom Ogilvy "Andy" wrote in message m... I have a feeling that you might have misundertood what I meant. What I want to accomplish is to override the Application_BeforeDoubleClick(..) function to find out what formula (if any) the double-clicked cell contains. So ' ' the prototype for status routine is ' Function status(i as integer, j as integer) as integer ' if InStr(activeCell.Formula, "=status(") = 1 Then MsgBox("It's a Cell containing a call to the function status(i,j)"); Else MsgBox("It's Not") End If In this example, I should be using the .Formula proporty and not the .FormulaLocal proporty correct? Because .FormulaLocal proporty would return something different depending on which region Excel is. Correct? eg, in Europe .FormulaLocal would return something like "=status(1;2)" and in the US, it would return something like "=status(1,2)". So is it correct to say that .Formula is more portable? Andy "Tom Ogilvy" wrote in message ... You have to write the macro in English in xl97 and later. Use formula if you are going to pass it a string that would work in an English Version of Excel. Use formulalocal if you will pass it a string that will work in your regional version. This includes use of list separators (comma versus period as an example). -- Regards, Tom Ogilvy "Andy" wrote in message om... Hi, If I'm writing a macro to check for the formula in a cell, which proporty should I be using to be internationally portable. Say if I write the macro in English, I should be using the formula proporty and not the FormulaLocal property right? Thanks Andy |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I enter formula sum(range+range)*0.15 sumif(range=3) | Excel Discussion (Misc queries) | |||
sum the difference in a range | Excel Worksheet Functions | |||
Date Range & Difference | Excel Worksheet Functions | |||
Count difference based on Range | Excel Worksheet Functions | |||
Labelling a row so it can be used as an offset for sum, difference or range | Excel Discussion (Misc queries) |