excel - 目标搜索功能中的“编译错误:需要对象”
问题描述
我正在尝试自动化Goalseek 功能。
Sub Goalseek()
Dim rw As Integer
Dim cl As Integer
Set rw = ActiveCell.Row
cl = ActiveCell.Column
To_value = Cells(rw, cl - 25).Value
Cells(rw, cl + 6).Goalseek Goal:=To_value, ChangingCell:=Cells(rw, cl)
End Sub
和
编译错误:需要对象
出现。
解决方案
推荐阅读
- mysql - Mysql/Laravel : Using left join to fetch latest created at date of any employee
- parallel-processing - 在 Julia 中使用 @distributed 时可能的 reducer 函数列表
- hyperledger-fabric - 如何让用户在超级账本结构中的任何交易之前上传私钥文件?
- ruby-on-rails - 在表单中传递 url 时没有将 Symbol 隐式转换为 Integer
- c++ - 使用模板化的arity存储在类函数中
- vue.js - 启用自动注入模式时,对子组件的 vee-validate 父 $validator 注入不起作用
- python - 在 for 循环中附加 pandas 在新列中获取不需要的值
- python - 我想知道未知的内容[警告:未知编解码器未知]
- javascript - 从对象javascript创建一个对象数组
- android - 如何知道设备HERE SDK中是否存在之前下载的离线地图