Montana
Wed Oct 20 17:57:02 CDT 2004
Well, I ran my little test, but before I give the results, let me clear up a
mis-statement I made in my last post. I had previously stated that I was
getting the "ambiguous name" error when I tried to run the code cleaner.
When I got home and tried my test, I realized that my previous statement was
in error. In fact, I was getting the "ambiguous name" error when I first
opened the VBE. When I tried to run the code cleaner, I got a different
error. I don't recall the precise error message, but it was along the lines
of "Application or user-defined object not defined."
Now that I've corrected myself on that point, here's what my test found. I
first tried to run the code cleaner on the project as-is, and I got the
expected error. I then removed the problem label from my form, and ran the
code cleaner again. After the change, the code cleaner ran without errors.
I also found that I was no longer getting the "ambiguous name" error when I
opened the VBE. So it would appear that both errors where associated with
the corrupt label on the form.
-- Tom
State of Montana
Department of Justice Help Desk
"Making the world a safer place."
"Montana DOJ Help Desk" <NoEmailReplies@Please.com> wrote in message
news:O41nWDktEHA.1252@TK2MSFTNGP10.phx.gbl...
> I tried running the code cleaner when I got home last night (don't have it
> installed on my work machine, so couldn't try it before I posted the
> message). I immediately got an "ambiguous name" error on a variable in
the
> ThisDocument module, but the variable that got highlighted has a unique
> name. I know this because I had a problem with an ambiguous name (that
> really was ambiguous) once before, so I developed a naming convention to
> insure that all variables, objects, controls, etc. have unique names.
>
> My *theory* at this point is that the ambiguous name error is just a
symptom
> of the problem with the form. I have a plan to test this theory. After
> reading Helmut's reply, I was able to identify the exact item (a label) on
> the form that seems to be causing the problem (read my reply to his
> message). I'll remove that label from the form, then run the code
cleaner.
> If I don't get the ambiguous name error, then I'll now the label in the
form
> was the problem. If I still get the error, then I'll move the form into a
> new project by itself, and run the code cleaner again to see what happens.
>
> I'll post my results for anyone who may be interested.
>
> -- Tom
>
> State of Montana
> Department of Justice Help Desk
>
> "Making the world a safer place."
> "Jonathan West" <jwest@mvps.org> wrote in message
> news:enNTU0dtEHA.1220@TK2MSFTNGP10.phx.gbl...
> >
> > "Montana DOJ Help Desk" <NoEmailReplies@Please.com> wrote in message
> > news:ehJx8ZZtEHA.224@TK2MSFTNGP15.phx.gbl...
> > > Word 2000
> > >
> > > In the last 2 days I have started getting the following error message
> when
> > > I
> > > try to save my project:
> > >
> > > The disk is full. Free some space on this drive, or save the
document
> > > on
> > > another disk.
> > > Try one or more of the following:
> > > * Close any unneeded documents, programs, and windows.
> > > * Save the document on another disk.
> > >
> > > The problem is NOT with disk space (I currently have over 1 GB of free
> > > drive
> > > space). The problem is not with the hard drive itself (I ran ScanDisk
> and
> > > defragged). If I try saving to another drive, I get the same message.
> > >
> > > I noticed that if I remove a certain form from the project, the
problem
> > > goes
> > > away. If I import that form again, then problem comes back. I can do
> > > this
> > > over and over, and the results are always repeatable--remove the form
> and
> > > the problem goes away, bring back the form and the problem comes back.
> > >
> > > So it looks like a problem with a corrupt form. I have a couple of
> > > questions:
> > >
> > > 1) Could it be something other than a corrupt form?
> > >
> > > Assuming that it is a corrupt form...
> > >
> > > 2) Is there a way to repair the form without rebuilding it from
scratch,
> > > like by running a code cleaner on it?
> >
> > Try the Word VBA Code Cleaner, available from
> >
http://word.mvps.org/FAQs/MacrosVBA/TemplateBloat.htm
> >
> > >
> > > 3) Are there any practices that I should be following to make sure my
> > > forms
> > > don't become corrupt?
> >
> > Run the code cleaner periodically if you have a template with a large
> prject
> > that is getting built or updated.
> >
> >
> > --
> > Regards
> > Jonathan West - Word MVP
> > www.intelligentdocuments.co.uk
> > Please reply to the newsgroup
> >
>
>