ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   option explicit error (https://www.excelbanter.com/excel-programming/315582-option-explicit-error.html)

helmekki[_50_]

option explicit error
 

Hi

why, within a module, when select option explicit the DATABASE_SHEET
"..." cannot be recognised nad when i donot choose option explicit the

DATABASE_SHEET = ".." works fine



Thank u
________________

--
helmekk

-----------------------------------------------------------------------
helmekki's Profile: http://www.excelforum.com/member.php...nfo&userid=693
View this thread: http://www.excelforum.com/showthread.php?threadid=27465


Tom Ogilvy

option explicit error
 
Option Explict means you must declare Database_Sheet

Dim DATABASE_SHEET as Variant

or whatever type it should be.

--
Regards,
Tom Ogilvy

"helmekki" wrote in message
...

Hi

why, within a module, when select option explicit the DATABASE_SHEET =
"..." cannot be recognised nad when i donot choose option explicit then

DATABASE_SHEET = ".." works fine



Thank u
_________________


--
helmekki


------------------------------------------------------------------------
helmekki's Profile:

http://www.excelforum.com/member.php...fo&userid=6939
View this thread: http://www.excelforum.com/showthread...hreadid=274659





All times are GMT +1. The time now is 02:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com