vba - 错误运行时错误 -2147024809 (80070057)
问题描述
我对我的宏有一个问题,我在运行时遇到错误:
Run Time Error -2147024809 (80070057)
排队
If VBA.Len(Me.Controls("Textbox" & i).Value) > 0 Then
所有代码
Dim wks As Worksheet
Dim lWie As Long
Dim i As Long
Dim lRow As Long
Set wks = ThisWorkbook.Worksheets("Sheat1")
With wks
lWie = .Cells(.Rows.Count, "A").End(xlUp).Row
For i = 1 To 40
If VBA.Len(Me.Controls("Textbox" & i).Value) > 0 Then
lRow = lRow + 1
.Cells(lWie + lRow, "A").Value = lWie + lRow - 1
.Cells(lWie + lRow, "B").Value = .Range("P1").Value
.Cells(lWie + lRow, "C").Value = .Range("R1").Value
.Cells(lWie + lRow, "D").Value = Me.Controls("Textbox" & i).Value
End If
Next i
End With
解决方案
推荐阅读
- python - 在 Python 代码中使用动态 C++ 库的问题
- python - 请求/响应标头 Python Eve 中的神秘空格字符
- angular - 将应用的修改保存在 node_modules 文件中
- python - R 的 qunif 与 Python 的 stats.uniform.ppf(不同的结果)
- javascript - 如何在 HTML CSS 中制作幻灯片
- json - HIGHCHARTS POINTSTART 今天日期
- ruby-on-rails - 库未加载 libssl.1.0.0.dylib
- rest - 如何将 SOAP 请求转换为 REST 请求?
- r - 如何对多列中小写值的数据框进行子集化
- mysql - How to explode mySQL column into REGEXP?