excel - VBA问题,将值影响到excel列
问题描述
我试图通过 VBA 在 excel 中开发一个函数,我写了下面的语法,但它总是错误的(我不知道为什么)!错误消息说:Else Cells.Value(i, 2) not correct , please if语法有问题帮我改正
Dim i As Integer
i = 2
While Cells(i, 1).Value <> 0
If Cells(i, 1).Value = Cells(i - 1, 1).Value Then
Cells(i, 2).Value = 0
Else
Cells(i, 2).Value
End If
i = i + 1
Wend
解决方案
推荐阅读
- ruby - 为什么 1.object_id 在 Ruby 2.5.1 中总是返回 3?
- ionic-framework - mobilefirst js 以 ionic serve 开头(未定义 WL)
- reactjs - 到达和字体真棒
- javascript - 为什么 HTML DOM 事件不会立即影响同一个 DOM 元素?
- react-native - 添加风味后Android构建失败
- c++ - c++函数中Const用法的区别
- elasticsearch - elasticsearch.yml ses 电子邮件配置
- android - Android应用小部件背景形状以编程方式更改颜色不透明度
- zalenium - Windows - zalenium 文件上传
- http-live-streaming - 使用 EXT-X-BYTERANGE 动态生成 m3u8 列表