在excel表格中人民币小写金额自动转大写金额的方法.docVIP

  • 28
  • 0
  • 约2.01千字
  • 约 2页
  • 2017-06-07 发布于重庆
  • 举报

在excel表格中人民币小写金额自动转大写金额的方法.doc

在excel表格中人民币小写金额自动转大写金额的方法

在excel表格中人民币小写金额自动转大写金额的方法 通过一个自定义函数就可以实现! 下面就通过此例来介绍使用自定义函数的全过程,即使是初学Excel的朋友,也会感觉其操作实际上是非常简单的。 1. 选择菜单“工具→宏→Visual Basic编辑器”命令,打开Visual Basic窗口,我们将在这里自定义函数。 2. 进入Visual Basic窗口后,选择菜单“插入→模块”命令,于是得到“模块1”,在其中输入如下自定义函数的代码: public function zdx x as currency as string dim lnp as integer dim prc as string dim tmp as string dim nob as currency dim dx as string dim xx as string dim zhen as boolean dim str 10 as string dim china as string china 分角元拾佰仟万拾佰仟亿 str 0 零 str 1 壹 str 2 贰 str 3 叁 str 4 肆 str 5 伍 str 6 陆 str 7 柒 str 8 捌 str 9 玖 zhen true

文档评论(0)

1亿VIP精品文档

相关文档