Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default No Macros but Macro enabling message

Hi,

I have a workbook which doesnt have any Modules folder (also NO macros) and
neither is there any code in individual worksheets/workbook (Only option
explicit is mentioned in each one of them). It also doesnt seem to have any
of the Xl 4 macro worksheets.

Some of the worksheets does have the control tool-box buttons.

When I open this worksheet, I get a message similar to " Do you want to
enable macros in this worksheet or not? etc...

Why am I getting the above message, as I dont have any code?

(I got this workbook from Web)

Thanks a lot,
Hari
India


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 233
Default No Macros but Macro enabling message

Option Explicit is enough to trigger macor warnings!

DM Unseen

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default No Macros but Macro enabling message

Hi DM,

I create a new-workbook with Ctrl+N and then check out the VBE and see that
Option Explicit is added by VBE automatically (I have the option for it
checked in my VB, so I believe new wkbooks have this line added auto.)

I saved the above wkbok with no changes and reopened the same in a new excel
session. I did NOT get any Macro warnings, so not sure whether Option
explicit is enough to trigger messages.

Thanks a lot,
Hari
India

"DM Unseen" wrote in message
ups.com...
Option Explicit is enough to trigger macor warnings!

DM Unseen



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 233
Default No Macros but Macro enabling message

Hari,

Sorry for the confusion,
Option Explicit only triggers a warning when it is in a code/class
module. It will not trigger a warning when it is in a sheet or
workbook.

DM Unseen



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default No Macros but Macro enabling message

Hi DM,

If ur talking about the "code" , then even if a single comment (and nothing
else) is there in any module then it would trigger a message.

Thanks a lot,
Hari
India


"DM Unseen" wrote in message
oups.com...
Hari,

Sorry for the confusion,
Option Explicit only triggers a warning when it is in a code/class
module. It will not trigger a warning when it is in a sheet or
workbook.

DM Unseen



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default No Macros but Macro enabling message

Hi Nick,

Didnt want to cause trouble for mail scanning the attachment from your and
my side, hence sending you the web-link.

The workbook - 96.5 KB- I talked about could be downloaded from (Probably
an UK university) -

http://www.mis.coventry.ac.uk/research/discus/samp.xls

Please guide me.

Thanks a lot,
Hari
India


"Nick Hodge" wrote in message
...
Hari

In my experience you will only get this message if you have some code
somewhere and it can hide in many places

If you'd like to forward me the book I'll take a look

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"Hari Prasadh" wrote in message
...
Hi,

I have a workbook which doesnt have any Modules folder (also NO macros)
and neither is there any code in individual worksheets/workbook (Only
option explicit is mentioned in each one of them). It also doesnt seem to
have any of the Xl 4 macro worksheets.

Some of the worksheets does have the control tool-box buttons.

When I open this worksheet, I get a message similar to " Do you want to
enable macros in this worksheet or not? etc...

Why am I getting the above message, as I dont have any code?

(I got this workbook from Web)

Thanks a lot,
Hari
India





  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default No Macros but Macro enabling message

There is a hidden sheet named "Sampling Macros" that has just that. The book
is an Excel 4.0 with a macro sheet and those macros cannot be disabled, that
I am aware of.

Mike F
"Hari Prasadh" wrote in message
...
Hi Nick,

Didnt want to cause trouble for mail scanning the attachment from your and
my side, hence sending you the web-link.

The workbook - 96.5 KB- I talked about could be downloaded from (Probably
an UK university) -

http://www.mis.coventry.ac.uk/research/discus/samp.xls

Please guide me.

Thanks a lot,
Hari
India


"Nick Hodge" wrote in message
...
Hari

In my experience you will only get this message if you have some code
somewhere and it can hide in many places

If you'd like to forward me the book I'll take a look

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"Hari Prasadh" wrote in message
...
Hi,

I have a workbook which doesnt have any Modules folder (also NO macros)
and neither is there any code in individual worksheets/workbook (Only
option explicit is mentioned in each one of them). It also doesnt seem
to have any of the Xl 4 macro worksheets.

Some of the worksheets does have the control tool-box buttons.

When I open this worksheet, I get a message similar to " Do you want to
enable macros in this worksheet or not? etc...

Why am I getting the above message, as I dont have any code?

(I got this workbook from Web)

Thanks a lot,
Hari
India







  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default No Macros but Macro enabling message

Hi Mike and Nick,

Thnx for your help.

Too foolish of me to not even check for hidden sheets.

Thanks a lot,
Hari
India

"Mike Fogleman" wrote in message
...
There is a hidden sheet named "Sampling Macros" that has just that. The
book is an Excel 4.0 with a macro sheet and those macros cannot be
disabled, that I am aware of.

Mike F
"Hari Prasadh" wrote in message
...
Hi Nick,

Didnt want to cause trouble for mail scanning the attachment from your
and my side, hence sending you the web-link.

The workbook - 96.5 KB- I talked about could be downloaded from
(Probably an UK university) -

http://www.mis.coventry.ac.uk/research/discus/samp.xls

Please guide me.

Thanks a lot,
Hari
India


"Nick Hodge" wrote in message
...
Hari

In my experience you will only get this message if you have some code
somewhere and it can hide in many places

If you'd like to forward me the book I'll take a look

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"Hari Prasadh" wrote in message
...
Hi,

I have a workbook which doesnt have any Modules folder (also NO macros)
and neither is there any code in individual worksheets/workbook (Only
option explicit is mentioned in each one of them). It also doesnt seem
to have any of the Xl 4 macro worksheets.

Some of the worksheets does have the control tool-box buttons.

When I open this worksheet, I get a message similar to " Do you want to
enable macros in this worksheet or not? etc...

Why am I getting the above message, as I dont have any code?

(I got this workbook from Web)

Thanks a lot,
Hari
India









  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,173
Default No Macros but Macro enabling message

Hari

As has been pointed out this has a hidden XLM (V4) macro sheet which is
triggering the warning. If you do not need the functionality it gives you,
you can go to FormatSheetUnhide...SAMPLING MACRO and delete the sheet in
the usual way. This then gets rid of the pop-up

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"Hari Prasadh" wrote in message
...
Hi Nick,

Didnt want to cause trouble for mail scanning the attachment from your and
my side, hence sending you the web-link.

The workbook - 96.5 KB- I talked about could be downloaded from (Probably
an UK university) -

http://www.mis.coventry.ac.uk/research/discus/samp.xls

Please guide me.

Thanks a lot,
Hari
India


"Nick Hodge" wrote in message
...
Hari

In my experience you will only get this message if you have some code
somewhere and it can hide in many places

If you'd like to forward me the book I'll take a look

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"Hari Prasadh" wrote in message
...
Hi,

I have a workbook which doesnt have any Modules folder (also NO macros)
and neither is there any code in individual worksheets/workbook (Only
option explicit is mentioned in each one of them). It also doesnt seem
to have any of the Xl 4 macro worksheets.

Some of the worksheets does have the control tool-box buttons.

When I open this worksheet, I get a message similar to " Do you want to
enable macros in this worksheet or not? etc...

Why am I getting the above message, as I dont have any code?

(I got this workbook from Web)

Thanks a lot,
Hari
India









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
Enabling Macros Saxman[_3_] Excel Discussion (Misc queries) 3 November 15th 08 06:59 PM
Enabling Macros Nikhil Excel Worksheet Functions 1 July 9th 08 12:47 PM
Enabling Macros Brian Gregg New Users to Excel 3 September 25th 07 06:32 PM
macros not enabling James[_10_] Excel Programming 2 September 4th 03 03:04 PM
Enabling macros Tom Ogilvy Excel Programming 0 August 18th 03 03:48 PM


All times are GMT +1. The time now is 03:20 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"