VBA Control Issues

C

Chris Picklesimer

All of a sudden I am having problems with controls on my VBA forms. I first
create a new form and place a few OOTB controls (command buttons, text boxes,
combo boxes etc.). I run the form the first time to get an idea how it will
look and have no problems. I will then add and adjust controls. Then, as I
run the form I sporadically get and error message saying "Could not find the
specified object." and all my latest changes to the form are lost. I find
that if I save before I run the form and then close out of the xls, all
changes are current as I re-open the file.

I have tried this on five or six files thinking that it might be a fluke.
All have the same problem. The thing that is strange is that I have done
this many times before and never had any issues until now.

Thanks for any insight.
 
T

Tom Ogilvy

First, close all applications. then find the temp directory

( before closing excel, in the immediate window do
? environ("Temp")
)


No go to that location in Windows explorer or with the command prompt window
and delete any files there and any subdirectories (and files) below temp,
particularly any associated with Office produces or VBA/VBE. (particularly
*.erd files).

then try it.
 
D

Dave Peterson

Another quick way to get to the Temp folder (still close all running
applications):

Windows start button|Run
%temp%
(hit ok)

And I think Tom mean *.exd files. (Typo alert patrol strikes again <bg>.)
 
T

Tom Ogilvy

Thanks for the catches.

--
Regards,
Tom Ogilvy


Dave Peterson said:
Another quick way to get to the Temp folder (still close all running
applications):

Windows start button|Run
%temp%
(hit ok)

And I think Tom mean *.exd files. (Typo alert patrol strikes again <bg>.)
 
N

NadiaR

hi i am sorry to reply to this post....but perhaps someone can tell me what I
am saying wrong in my post...I am not getting any response from anyone and i
really need help.

Tom said:
Thanks for the catches.
Another quick way to get to the Temp folder (still close all running
applications):
[quoted text clipped - 38 lines]
 
C

Chris Picklesimer

Thanks for your help!
--
Chris Picklesimer


Tom Ogilvy said:
First, close all applications. then find the temp directory

( before closing excel, in the immediate window do
? environ("Temp")
)


No go to that location in Windows explorer or with the command prompt window
and delete any files there and any subdirectories (and files) below temp,
particularly any associated with Office produces or VBA/VBE. (particularly
*.erd files).

then try it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top