excel - 数据没有放在正确的位置
问题描述
我希望我的数据从第 5 行开始,但相反,数据直接到底部。
Private Sub CommandButton6_Click()
Dim iRow As Long
Dim ws As Worksheet
Set ws = Worksheets("BEAM SUM CONC")
iRow = ws.Cells.Find(What:="*", SearchOrder:=xlRows, SearchDirection:=xlPrevious, LookIn:=xlValues).Row + 1
With ws
.Cells(iRow, "B") = TextBox1.Value
.Cells(iRow, "C") = TextBox2.Value
.Cells(iRow, "D") = TextBox3.Value
.Cells(iRow, "E") = TextBox4.Value
.Cells(iRow, "F") = TextBox5.Value
.Cells(iRow, "G") = TextBox6.Value
.Cells(iRow, "H") = TextBox7.Value
End With
End Sub
怎么样?
解决方案
推荐阅读
- model - Promela 同时随机选择两个元素
- refresh-token - 使用 refresh_token 创建 access_token
- php - 为什么我的 ajax 没有执行我的 sql 查询?
- google-sheets - 如何自动复制单元格范围,以便在不获取 #REF 的情况下修改值
- php - 如何在 PHP Symfony 4 中获取 POST 全局变量?
- angular - nrwl nx 应用程序(Angular7 / Typescript)之间的共享样式(scss)
- groovy - 从 JSON 获取 Groovy 输出 XML
- rest - Kotlin +spring boot post请求默认布尔值
- vsix - 在 Visual Studio 上的构建后事件属性上写入新值
- python - Python,用箭头键移动物体