excel - Storing 1000 cells of formulas into a variable VBA
问题描述
Hi everyone is there a way of storing range 1000 cells of formulas into declared variable which is variant. Whilst I have been able store 1000 cells which are values into a variable. I am keen to know how you can do this with formulas and formating, large range of formulas using VBA.
解决方案
例如,您可以像使用值一样执行此操作
Dim v As Variant
v = Range("B1:B3").Formula
这将为您提供数组中的字符串形式的公式。
至少我是这样理解你的问题的。
推荐阅读
- python - 某些测试用例的最大数组总和失败
- terraform - 在 terraform 中生成一次随机值
- pandas - 熊猫在条件和添加新列的情况下分享价值
- arrays - VBA 全局帧数组
- scala - 在 Azure 数据工厂中提交 Spark
- reactjs - 找不到 reactjs 服务人员 .license 文件
- google-cloud-platform - 如何解决我们无法连接到端口 22 上的 VM。了解有关 GCP 上此问题的可能原因的更多信息?
- html - 将 div 标签包含在输入的焦点中
- python - 使用 Execute many from pyodbc 到 SQL Server 的数据框
- javascript - 如何将 HTML 中的图像覆盖在 CSS 中的文本上