excel - 如何在 Excel 中可用的 VBA 中使用 TRUNC 函数
问题描述
我需要在 VBA 中使用 Excel 中可用的 TRUNC 函数。我注意到它在 Application.WorksheetFunction 中不可用。我怎么才能得到它?
提前致谢。
解决方案
您可以使用拆分功能并拆分.
NewStr = split(string, ".")(0)
推荐阅读
- python - 在 tkinter 中裁剪图像
- javascript - 基于对象值列表的新对象
- node.js - Flask 用于服务器,Node.js 用于 API?
- c++ - mingw-w64 gcc 无法识别来自 dxgiformat.h 的 DXGI_FORMAT
- sql-server - 更改域服务器时 Windows 身份验证失败
- postgresql - 为什么这个 PL/PgSql 无效?
- python - 通过 SSISDB 运行时出现“执行进程任务错误:文件/进程 >“*C:\Users\username\pythonProgram.exe*”不在路径中”
- asp.net-core - Gitlab ci build 无法恢复 asp.net 核心项目的包
- r - 如何将一个单元格的值更改为另一个单元格的不同值?
- r - 当我在 r 中放大绘图时,为什么图例框的大小会增加?