首页 > 解决方案 > 如何在 Excel 中可用的 VBA 中使用 TRUNC 函数

问题描述

我需要在 VBA 中使用 Excel 中可用的 TRUNC 函数。我注意到它在 Application.WorksheetFunction 中不可用。我怎么才能得到它?

提前致谢。

标签: excelvba

解决方案


您可以使用拆分功能并拆分.

NewStr = split(string, ".")(0)

推荐阅读