Excel VBA - Loop through range and set formula in each cell

后端 未结 2 432
萌比男神i
萌比男神i 2021-01-21 08:58

I\'ve got a workbook where I have one worksheet which contains a lot of data. My goal is to create a macro that inserts a formula in a separate sheet to copy the data from the

2条回答
  •  醉梦人生
    2021-01-21 09:37

    Would not it be easier to get the cell address with the Cells.Address function?

    For example:

    MsgBox Cells(1, 5).Address

    Shows "$E$1"

    Best Regards

提交回复
热议问题