Excel VBA Run-time error '424': Object Required when trying to copy TextBox

前端 未结 3 1611
心在旅途
心在旅途 2021-02-10 09:08

I\'m attempting to copy the contents of a text box from one workbook to another. I have no problem copying cell values from the first workbook to the

3条回答
  •  不知归路
    2021-02-10 09:24

    I think the reason that this is happening could be because TextBox1 is scoping to the VBA module and its associated sheet, while Range is scoping to the "Active Sheet".

    EDIT

    It looks like you may be able to use the GetObject function to pull the textbox from the workbook.

提交回复
热议问题