Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Disable Macros for Template

Hi All! I have created an Excel Template and within that
template I have a macro that automatically opens a form
when the document opens. I want to disable the macros in
the template after I have made the necessary changes.

To sum it up, I want to open the template, enter the
information in the form, click the ok command button
(which takes the information from the text boxes and put
them into my document), and then I want to disable my
macros and save the document so I can send it out to
clients.

Note: I have everything created except for a way to
disable the macros. Does anyone have any suggestions??

TIA and Happy New Year!
Julie
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Disable Macros for Template

Hi Julie

See my earlier answers to "Worksheet Mailing Conditions" or "Only Show
Userform Once" - doesn't disable the macro completely but can allow you to
do nothing....

Regards

David


"Julie" wrote in message
...
Hi All! I have created an Excel Template and within that
template I have a macro that automatically opens a form
when the document opens. I want to disable the macros in
the template after I have made the necessary changes.

To sum it up, I want to open the template, enter the
information in the form, click the ok command button
(which takes the information from the text boxes and put
them into my document), and then I want to disable my
macros and save the document so I can send it out to
clients.

Note: I have everything created except for a way to
disable the macros. Does anyone have any suggestions??

TIA and Happy New Year!
Julie



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Disable Macros for Template

David,

I don't want the warning box that asks to enable or
disable the macros to pop up, I also don't want anyone
else to access the form or the code. I want the
programming side of the workbook (after it is modified
the first initial time) to be gone or locked. Any
Suggestions?

Thanks for your help!

Julie
-----Original Message-----
Julie

I don't know if it can be done automatically as you'd

have to have some code
present to say "delete the code". The manual way is to

right-click the
module(s) / form(s) in the VBA editor and "remove

{module name}"

Is it critical to remove the them or just to stop

the "this file contains
macros" warning box or?

Regards

David



"Julie" wrote in

message
...
David,
Thanks for your response. Is there any way to wipe out
all of the programming side of the document when the

form
is closed? I don't want to be able to see the form

again
or any of the modules. I only want to see the

wroksheets
in the workbook. TIA!

Julie

-----Original Message-----
Hi Julie

See my earlier answers to "Worksheet Mailing

Conditions"
or "Only Show
Userform Once" - doesn't disable the macro completely

but can allow you to
do nothing....

Regards

David


"Julie" wrote in

message
...
Hi All! I have created an Excel Template and within

that
template I have a macro that automatically opens a

form
when the document opens. I want to disable the

macros
in
the template after I have made the necessary

changes.

To sum it up, I want to open the template, enter the
information in the form, click the ok command button
(which takes the information from the text boxes and

put
them into my document), and then I want to disable

my
macros and save the document so I can send it out to
clients.

Note: I have everything created except for a way to
disable the macros. Does anyone have any

suggestions??

TIA and Happy New Year!
Julie


.



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Disable Macros for Template

Hi Julie

The code / forms can be locked (from the casual viewer) with passwords but
there's software out there to crack this protection.

If you don't want the warning box there only 2 ways to stop it:

set their security level to low (not likely or very practical)

or

manually remove the modules once the work is done. (even having empty
modules present causes the warning to be generated)

I think, therefore, that it's going to have to be done by you by hand each
time - sorry....

Regards

David

BTW, if you ever prove me wrong (quite possible!) can you let me know how
you achieve this? david at digicon dot com dot au


"Julie" wrote in message
...
David,

I don't want the warning box that asks to enable or
disable the macros to pop up, I also don't want anyone
else to access the form or the code. I want the
programming side of the workbook (after it is modified
the first initial time) to be gone or locked. Any
Suggestions?

Thanks for your help!

Julie
-----Original Message-----
Julie

I don't know if it can be done automatically as you'd

have to have some code
present to say "delete the code". The manual way is to

right-click the
module(s) / form(s) in the VBA editor and "remove

{module name}"

Is it critical to remove the them or just to stop

the "this file contains
macros" warning box or?

Regards

David



"Julie" wrote in

message
...
David,
Thanks for your response. Is there any way to wipe out
all of the programming side of the document when the

form
is closed? I don't want to be able to see the form

again
or any of the modules. I only want to see the

wroksheets
in the workbook. TIA!

Julie

-----Original Message-----
Hi Julie

See my earlier answers to "Worksheet Mailing

Conditions"
or "Only Show
Userform Once" - doesn't disable the macro completely
but can allow you to
do nothing....

Regards

David


"Julie" wrote in
message
...
Hi All! I have created an Excel Template and within
that
template I have a macro that automatically opens a

form
when the document opens. I want to disable the

macros
in
the template after I have made the necessary

changes.

To sum it up, I want to open the template, enter the
information in the form, click the ok command button
(which takes the information from the text boxes and
put
them into my document), and then I want to disable

my
macros and save the document so I can send it out to
clients.

Note: I have everything created except for a way to
disable the macros. Does anyone have any

suggestions??

TIA and Happy New Year!
Julie


.



.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Disable Macros for Template

Use an Addin to hold the code. Don't have it in the workbook to begin
with - either that or copy the worksheets to a new workbook.

--
Regards,
Tom Ogilvy

"Julie" wrote in message
...
David,

I don't want the warning box that asks to enable or
disable the macros to pop up, I also don't want anyone
else to access the form or the code. I want the
programming side of the workbook (after it is modified
the first initial time) to be gone or locked. Any
Suggestions?

Thanks for your help!

Julie
-----Original Message-----
Julie

I don't know if it can be done automatically as you'd

have to have some code
present to say "delete the code". The manual way is to

right-click the
module(s) / form(s) in the VBA editor and "remove

{module name}"

Is it critical to remove the them or just to stop

the "this file contains
macros" warning box or?

Regards

David



"Julie" wrote in

message
...
David,
Thanks for your response. Is there any way to wipe out
all of the programming side of the document when the

form
is closed? I don't want to be able to see the form

again
or any of the modules. I only want to see the

wroksheets
in the workbook. TIA!

Julie

-----Original Message-----
Hi Julie

See my earlier answers to "Worksheet Mailing

Conditions"
or "Only Show
Userform Once" - doesn't disable the macro completely
but can allow you to
do nothing....

Regards

David


"Julie" wrote in
message
...
Hi All! I have created an Excel Template and within
that
template I have a macro that automatically opens a

form
when the document opens. I want to disable the

macros
in
the template after I have made the necessary

changes.

To sum it up, I want to open the template, enter the
information in the form, click the ok command button
(which takes the information from the text boxes and
put
them into my document), and then I want to disable

my
macros and save the document so I can send it out to
clients.

Note: I have everything created except for a way to
disable the macros. Does anyone have any

suggestions??

TIA and Happy New Year!
Julie


.



.



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
how do i disable macros? whatzzup Excel Discussion (Misc queries) 1 March 14th 06 01:51 PM
Disable macros in template d/l from MS? Ferret Daddy New Users to Excel 1 February 9th 05 12:54 AM
How to disable macros? LenB[_2_] Excel Programming 6 October 6th 03 07:54 PM
Suppress the Disable Macros / Enable Macros Dialog Shoji Karai Excel Programming 5 September 24th 03 03:10 AM
en-/disable macros pop-up James[_10_] Excel Programming 1 July 22nd 03 05:55 PM


All times are GMT +1. The time now is 01:33 AM.

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

About Us

"It's about Microsoft Excel"