Copying formula to the next row when inserting a new row

前端 未结 5 636
轮回少年
轮回少年 2021-02-12 15:05

I have a row in which there are formulas using values of the same row. The next row is empty, just with a different background color.

Now, if I insert a new row (by righ

5条回答
  •  粉色の甜心
    2021-02-12 15:50

    One other key thing that I found regarding copying rows within a table, is that the worksheet you are working on needs to be activated. If you have a workbook with multiple sheets, you need to save the sheet you called the macro from, and then activate the sheet with the table. Once you are done, you can re-activate the original sheet.

    You can use Application.ScreenUpdating = False to make sure the user doesn't see that you are switching worksheets within your macro.

    If you don't have the worksheet activated, the copy doesn't seem to work properly, i.e. some stuff seem to work, and other stuff doesn't ??

提交回复
热议问题