excel 2000 : define variables

Qroozn

Well-known Member
Joined
Mar 12, 2002
Messages
543
How can i turn off the :

compile error:
variable not defined

I turned off the yools/options/ and unchecked the "require variable declaration" but i still get the compile error!


Please Help a friend in need
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Have you defined anything with OptionExplicit or Private?

If so then your only option is to define.

Show your code may be we can fix it? JSW
 
Upvote 0
Joe Was. You are right on the ball.
yes the function was defined as option explicit.
 
Upvote 0
On 2002-08-27 19:16, Qroozn wrote:
How can i turn off the :

compile error:
variable not defined

I turned off the yools/options/ and unchecked the "require variable declaration" but i still get the compile error!


Please Help a friend in need

Hi Qroozn
Whilst there are times you may need to turn this option off, it is good practice to leave it ON, it will save you a lot a problems latter on when you start doing larger projects.....But that choice is yours.
The only time I turn it off is to do quick routines that may only contain a few variables that I know have no conflict for quick tests....then I turn it back on and recompile.
 
Upvote 0
Ivan.
as you know I take corners.
But i am now working on determing the correct variables for my coding.
Thanks for the tip!
 
Upvote 0

Forum statistics

Threads
1,221,417
Messages
6,159,788
Members
451,589
Latest member
Harold14

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top