Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to use function CELL(Infotyp;Ref) in VBA?
Hi.
I try to use the worksheet function CELL(Infotyp;Ref) in VBA to abtain the format info of a cell. But in VBA I can't find this function (it is not included in the Application.WorksheetFunction object!) How can I use CELL(..) in VBA? Is there any other way to obatin the format info that is given by CELL("Format", ...), i.e. "S" for standard, "F2" for "0,00", "P0" for "0%" and so on...)? Thanks in advance, Stefan Jauch |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to use function CELL(Infotyp;Ref) in VBA?
Not all worksheetfunctions are available in VBA. This appears to be one of
them. Nothing else produces those categorizations. You can use sFormat = ActiveCell.Numberformat then parse the results to make your own determination. -- Regards, Tom Ogilvy "Stefan Jauch" <Stefan wrote in message ... Hi. I try to use the worksheet function CELL(Infotyp;Ref) in VBA to abtain the format info of a cell. But in VBA I can't find this function (it is not included in the Application.WorksheetFunction object!) How can I use CELL(..) in VBA? Is there any other way to obatin the format info that is given by CELL("Format", ...), i.e. "S" for standard, "F2" for "0,00", "P0" for "0%" and so on...)? Thanks in advance, Stefan Jauch |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to use function CELL(Infotyp;Ref) in VBA?
Stefan,
Not sure if this is the reason, the Help states: <quote Remarks The CELL function is provided for compatibility with other spreadsheet programs. </quote May be this means that it's not part of the object model. NickHK "Stefan Jauch" <Stefan wrote in message ... Hi. I try to use the worksheet function CELL(Infotyp;Ref) in VBA to abtain the format info of a cell. But in VBA I can't find this function (it is not included in the Application.WorksheetFunction object!) How can I use CELL(..) in VBA? Is there any other way to obatin the format info that is given by CELL("Format", ...), i.e. "S" for standard, "F2" for "0,00", "P0" for "0%" and so on...)? Thanks in advance, Stefan Jauch |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
ISBLANK function not working when cell is blank dut to function re | Excel Discussion (Misc queries) | |||
Copy Excel Function from a Cell Through a Function | Excel Worksheet Functions | |||
I want result of a function in the cell and not the function itsel | Excel Worksheet Functions | |||
Can function in one cell change value or function in another cell? | Excel Worksheet Functions | |||
Hiding a function value in a cell until function used | Excel Worksheet Functions |