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

前端 未结 3 751
谎友^
谎友^ 2021-02-10 08:40

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:18

    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.

提交回复
热议问题