#1
|
|||
|
|||
Form Not Found Error
Hello,
I have a form in Word that has run pretty well up until now. I am in the clean up stages getting rid of code and buttons that are not needed. I am being very careful to only delete entire blocks of code, not leaving any orphaned remnants. After deleting the code for a command button on form, I get an error "Form Object not Found" error when running the form. I have not changed the name of the form or any of it's properties. I ran the form on another computer just to rule out the possibility of corrupt system files. Below is a screenshot of the error. Any ideas? Thanks Form Error.jpg |
#2
|
||||
|
||||
Looks like it should work so these are only guesses to resolve.
Do you get an error when you compile? Try moving the macro into a regular module. Rename the form and change the code to match the new name
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
|||
|
|||
Source of Error Found
I discovered the source of my error. When I deleted the txt9 control (textbox) I neglected to change the count of a For loop from 9 to 8 so a function call was being made on an non-existent object.
As I am new to programming, I am learning the hard way that the error message generated, in this case "Form Object not Found" is often not really the problem at all. It is an error message that was passed "downstream" by another error. |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error! Reference source not found - Why | kennethc | Word | 3 | 06-15-2018 04:43 AM |
error filexyz.xla cannot be found [excel 2010] | jalea148 | Excel | 8 | 09-03-2017 11:51 PM |
vba error method or data member not found in excel 2010 | Rose roon | Excel Programming | 0 | 09-08-2015 03:51 AM |
pptx keeps saying it found an error it can't correct | david@2ndhorizon.com.au | PowerPoint | 0 | 01-14-2014 02:15 AM |
Application not found error when trying to open .pdf files. | Dave | Outlook | 2 | 12-15-2005 01:01 PM |