VBA Shapes Visible causing debug error when closing file

JoyMaree

New Member
Joined
Sep 12, 2018
Messages
18
I have set up a file with heaps of checkboxes which I want to hide when not in use. The VBA is running perfectly except when I close the file. I get the following error: "Run-time error '50290': Application-defined or object-defined error" The error takes me to this code: Sub



Sub hide_atsi()

Sheet5.Shapes("textbox 74").Visible = msoCFalse

End Sub



I have been using this file for months and had no problems but now this happens every time I close and save the file.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Something is happening to that specific Textbox before this code can execute. Have you run a Step Through?
 
Upvote 0
There is only the one line of code in the macro sub. I also don't have an auto close macro so I'm not even sure what to look at to fix it.
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top