Store location of cell address to variable in VBA

后端 未结 3 1947
没有蜡笔的小新
没有蜡笔的小新 2021-01-22 22:29

I\'m using VBA in Excel and I\'m using a function to find the first empty row then adding some values, after that I need to pass the address of the cell to another function but

3条回答
  •  太阳男子
    2021-01-22 22:50

    The .Address property returns a string so you'll need to to set the addCell variable like so:

    Set addCell = Worksheets("Schedule").Range(.Address)
    

提交回复
热议问题