Merge the contents of 2 cells into another 3rd cell using VBA in Excel

后端 未结 4 1101
一整个雨季
一整个雨季 2021-01-20 01:18

I have two cells lets say: A1 and A2

The content of each one of them is a string:

A1: Hallo

A2: World

My goal is to merge the contents of A1

4条回答
  •  佛祖请我去吃肉
    2021-01-20 02:10

    I suggest either an Excel formula

    =A1&A2
    

    or a VBA macro

    Range("A3").Cell.Value = Range("A1").Cell.Value & Range("A2").Cell.Value
    

提交回复
热议问题