Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error: could not find the specified object..

Status
Not open for further replies.

marduk813

Programmer
Jul 18, 2002
89
US
Hi all. I'm getting this error message on a VBA form that has worked great in the past. I made a change this morning, however. I removed a textbox and replaced it with a combobox. I did a Find/Replace on all references of the textbox in my code and replaced them with references to the combobox. Most of these just used a .Value and such.
Now, whenever I open the Word document containing this macro, I get the error message above. If I recreate the textbox that I removed, the error does not show up and everything is fine.
How can I completely remove that textbox control from my project? Even when I delete it from the main form, it still shows up in my Object Explorer. I've never had this problem before, which is why I'm asking here. [ponder]

Thanks in advance,

Jas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top