Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
VBA's help for .value2 describes the differences. It's useful for working with
dates and currencies. Put a date in a cell and show the .value and .value2 properties in a msgbox. Try it with a cell formatted for currency. (Put a value of 123.435213 in that cell.) From xl2003's help for .value: Value property as it applies to the Range object. Returns or sets the value of the specified range. Read/write Variant. expression.Value(RangeValueDataType) expression Required. An expression that returns a Range object. RangeValueDataType Optional Variant. The range value data type. Can be a xlRangeValueDataType constant. xlRangeValueDataType can be one of these xlRangeValueDataType constants. xlRangeValueDefault default If the specified Range object is empty, returns the value Empty (use the IsEmpty function to test for this case). If the Range object contains more than one cell, returns an array of values (use the IsArray function to test for this case). xlRangeValueMSPersistXML Returns the recordset representation of the specified Range object in an XML format. xlRangeValueXMLSpreadsheet Returns the values, formatting, formulas and names of the specified Range object in the XML Spreadsheet format. ======= I don't know what lcid is. Sean Farrow wrote: Hi: What is the difference between Value and Value2 when refering to to a range or cell. Secondly in excel xp and later (from the excel type library) there are three parameters, a lcid, an out parameter for the value and another parameter, RangeDataType, what is this parameters purpose. Any help apreciated. Sean. -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Obtaining values for a cell in Excel from a separate Excel file | Excel Discussion (Misc queries) | |||
Excel NPV initial cost in value1 and first year return in value2? | Excel Worksheet Functions | |||
Difference between .value and .value2 | Excel Programming | |||
Excel & C# NullReference Error when trying to set Range.Value2 | Excel Programming | |||
How to dinamic cell that searches for "value1 & value2" in table. | Excel Discussion (Misc queries) |