0

我正在UDF创建一个有时VB.NET与. 但有时我使用或只是一个普通的. 他们有哪些方法可以确定我应该如何使用or将值相加?currencyDecimalVBtimedoubledecimaldouble

为了简单起见,我不想让 excel 返回实际范围,但如果我需要确定它是否被格式化为货币,我会这样做。

4

1 回答 1

2

Since Excel uses Doubles for currency, time values, integers and all other numbers its not usually neccessary to find out how the number is formatted for Excel display purposes: just add the values up.= as doubles.

于 2012-01-18T20:04:34.097 回答