【发布时间】:2020-10-24 16:57:49
【问题描述】:
我正在尝试为 “金额”+“日期” 自动生成一个句子。我可以使用简单的 Excel 公式,但无法突出显示公式中的“金额”和“日期”。
我的公式是:
="The total price is " &TEXT(J5,"0.00") & " date today is " &TEXT(H3, "mm/dd/yyyy")
是否有可以绕过此问题的代码/VBA 函数? 每天交换的总金额和日期,我只需要突出显示它。如果唯一的解决方案是 VBA 代码,当我将 Excel 文件上传到谷歌驱动器时,如何确保宏不会消失?
【问题讨论】:
-
您愿意使用 Google Apps 脚本吗? (并且不使用Custom Functions,它不能用于设置富值文本)。
标签: excel vba google-sheets excel-formula spreadsheet