#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Date Error

having a bad hair day with a VBA call, I use the code

tmpdate = Date

this is run as part of an Auto_Open() proc in a
module "Main" in a workbook, the code is protected.

This works fine on some systems, but one others I get an
error message:

Cannot create object in hidden module Main

I know I have been and cured this before but I cannot for
the life of me remember how it's done.

Murray

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 391
Default Date Error

this is often a misleading error which occurs when a
reference is missing. stop any code , then under
Tools/references chech if anything is missing. If there
is. then you'll need to re-point to the dll or ocx or
whatever.

Patrick Molloy
Microsoft Excel MVP
-----Original Message-----
having a bad hair day with a VBA call, I use the code

tmpdate = Date

this is run as part of an Auto_Open() proc in a
module "Main" in a workbook, the code is protected.

This works fine on some systems, but one others I get an
error message:

Cannot create object in hidden module Main

I know I have been and cured this before but I cannot

for
the life of me remember how it's done.

Murray

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Date Error

Just the ticket, thanks, as a matter of idle interest how
can I work out what is missing on the systems causing
problems, is it simply registering the relevant DLL?

Murray

-----Original Message-----
this is often a misleading error which occurs when a
reference is missing. stop any code , then under
Tools/references chech if anything is missing. If there
is. then you'll need to re-point to the dll or ocx or
whatever.

Patrick Molloy
Microsoft Excel MVP
-----Original Message-----
having a bad hair day with a VBA call, I use the code

tmpdate = Date

this is run as part of an Auto_Open() proc in a
module "Main" in a workbook, the code is protected.

This works fine on some systems, but one others I get an
error message:

Cannot create object in hidden module Main

I know I have been and cured this before but I cannot

for
the life of me remember how it's done.

Murray

.

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Date Error

yes it is.
We use a custom installer that out IT uses for every "build" that ensures
all our users have the right dll's etc

--
Patrick Molloy
Microsoft Excel MVP
----------------------------------
"Murray Taylor" wrote in message
...
Just the ticket, thanks, as a matter of idle interest how
can I work out what is missing on the systems causing
problems, is it simply registering the relevant DLL?

Murray

-----Original Message-----
this is often a misleading error which occurs when a
reference is missing. stop any code , then under
Tools/references chech if anything is missing. If there
is. then you'll need to re-point to the dll or ocx or
whatever.

Patrick Molloy
Microsoft Excel MVP
-----Original Message-----
having a bad hair day with a VBA call, I use the code

tmpdate = Date

this is run as part of an Auto_Open() proc in a
module "Main" in a workbook, the code is protected.

This works fine on some systems, but one others I get an
error message:

Cannot create object in hidden module Main

I know I have been and cured this before but I cannot

for
the life of me remember how it's done.

Murray

.

.



  #5   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Date Error


Many thanks.

Murray

-----Original Message-----
yes it is.
We use a custom installer that out IT uses for

every "build" that ensures
all our users have the right dll's etc

--
Patrick Molloy
Microsoft Excel MVP
----------------------------------
"Murray Taylor"

wrote in message
...
Just the ticket, thanks, as a matter of idle interest

how
can I work out what is missing on the systems causing
problems, is it simply registering the relevant DLL?

Murray

-----Original Message-----
this is often a misleading error which occurs when a
reference is missing. stop any code , then under
Tools/references chech if anything is missing. If there
is. then you'll need to re-point to the dll or ocx or
whatever.

Patrick Molloy
Microsoft Excel MVP
-----Original Message-----
having a bad hair day with a VBA call, I use the code

tmpdate = Date

this is run as part of an Auto_Open() proc in a
module "Main" in a workbook, the code is protected.

This works fine on some systems, but one others I get

an
error message:

Cannot create object in hidden module Main

I know I have been and cured this before but I cannot
for
the life of me remember how it's done.

Murray

.

.



.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date Value Error Paula Excel Discussion (Misc queries) 6 February 9th 10 05:45 PM
date error hitesh New Users to Excel 1 September 4th 07 03:08 PM
date error hitesh via OfficeKB.com Excel Discussion (Misc queries) 1 October 20th 06 02:34 PM
Complile Error with Date dbl Excel Worksheet Functions 2 October 10th 05 12:33 PM
Date Error - HELP! Mikey Moe Excel Discussion (Misc queries) 1 February 6th 05 02:43 AM


All times are GMT +1. The time now is 03:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"