Form Names

D

Doug

I have a form named frmAbout with a capital A. In my code I have
frmabout.show, or frmabout.hide. They have small a. When I change to
capital A it changes back to small a. If I run the code I get an error
message "Object Variable or With Block Variable Not Set." If I change the
form name in Properties to frmabout with small a and re run the code, I get
the same error. 2 questions: What causes the A to change? Is the error
related to the 'A' or could there be some other problem with my code.
 
P

Patrick Molloy

place this:
OPTION EXPLICIT

at the top of your code module ... it will help enforce correct variable
name spelling
 
D

Doug

I'm not sure where you mean to place it. I have 'Sub Workbook_Open(), if I
place it above, title changes to(General) (Declarations). If I place it
below text changes to blue. Either way, the A always changes to a small a.

Thanks,
Doug
 

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