Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Row.Insert 将新行动态插入到我的工作表中。我想将 B 列中的一些值添加到我刚刚添加的行中,如 cell(my_new_row, 2).Value = myvalue. 我怎样才能做到这一点?谢谢!
这会做你需要的吗?
Sub AddRowToto() ' Optionnaly define here which row to select ActiveSheet.Rows("12:12").Select Selection.Insert Shift:=xlDown Selection.Cells(1, 2) = "toto" End Sub