Adding text to a cell in Excel using VBA

前端 未结 4 739
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-11 11:31

I\'ve been working with SQL and Excel Macros, but I don\'t know how to add text to a cell.

I wish to add the text \"01/01/13 00:00\" to cell A1

4条回答
  •  旧时难觅i
    2021-01-11 11:56

    You need to use Range and Value functions.
    Range would be the cell where you want the text you want
    Value would be the text that you want in that Cell

    Range("A1").Value="whatever text"
    

提交回复
热议问题