Is a particular line highlighted when you get that error? If not choose Tools|Options|General tab, check Break in Class Module and click OK. Is a line highlighted when you get the error now?
I can't reproduce your error. If TextBox1 doesn't exist I get an 'Object required' error not an 'Object Variable not set error'. With Option Explict at the top of the module I get a compile error if TextBox1 doesn't exist. Do you?
Unfortunately I'm struggling to replicate the error on my machine. It's being used on a number of computers across 3 companies and one companies produces the error.
I have Option Explicit set on mine and produce no errors at all.
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.