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

Hi All.........

I must provide a worksheet to a Customer for their perusal. There are
several Macros involved that I do not want them to see. What is the code
please for me to write a "Sanitize" macro that will delete all macros from
the modules, workbook, etc that the Customer need not see ? I tried
recording it, to delete individual macros by name, but that part does not
show up........

TIA
Chuck, CABGx3





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Code to delete Macros

http://www.cpearson.com/excel/vbe.htm

but why not protect the code in the VBE?

If you do, then you won't be able to delete it, but that form of protection
is fairly robust for the average user.

----------
I guess the scenario is not clear. You are giving the book complete to the
user, then the code will delete code after a demo?

--
Regards,
Tom Ogilvy

"CLR" wrote in message
...
Hi All.........

I must provide a worksheet to a Customer for their perusal. There are
several Macros involved that I do not want them to see. What is the code
please for me to write a "Sanitize" macro that will delete all macros from
the modules, workbook, etc that the Customer need not see ? I tried
recording it, to delete individual macros by name, but that part does not
show up........

TIA
Chuck, CABGx3







  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Code to delete Macros

Take a look at Chip's site http://www.cpearson.com/excel/vbe.htm

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"CLR" wrote in message
...
Hi All.........

I must provide a worksheet to a Customer for their perusal. There are
several Macros involved that I do not want them to see. What is the code
please for me to write a "Sanitize" macro that will delete all macros from
the modules, workbook, etc that the Customer need not see ? I tried
recording it, to delete individual macros by name, but that part does not
show up........

TIA
Chuck, CABGx3







  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Code to delete Macros

Thanks Bob.........

A lot more there than I had sense enough to ask for, but from a cursory
look, it should solve my problem.

Vaya con Dios,
Chuck, CABGx3



"Bob Phillips" wrote in message
...
Take a look at Chip's site http://www.cpearson.com/excel/vbe.htm

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"CLR" wrote in message
...
Hi All.........

I must provide a worksheet to a Customer for their perusal. There are
several Macros involved that I do not want them to see. What is the

code
please for me to write a "Sanitize" macro that will delete all macros

from
the modules, workbook, etc that the Customer need not see ? I tried
recording it, to delete individual macros by name, but that part does

not
show up........

TIA
Chuck, CABGx3









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

it should solve my problem.

For your consideration (posted by Stephen Bullen)

Generally when automating the IDE, it's not a good idea to modify your own
project. What are you trying to achieve?

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.ie

--
Regards,
Tom Ogilvy


"CLR" wrote in message
...
Thanks Bob.........

A lot more there than I had sense enough to ask for, but from a cursory
look, it should solve my problem.

Vaya con Dios,
Chuck, CABGx3



"Bob Phillips" wrote in message
...
Take a look at Chip's site http://www.cpearson.com/excel/vbe.htm

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"CLR" wrote in message
...
Hi All.........

I must provide a worksheet to a Customer for their perusal. There are
several Macros involved that I do not want them to see. What is the

code
please for me to write a "Sanitize" macro that will delete all macros

from
the modules, workbook, etc that the Customer need not see ? I tried
recording it, to delete individual macros by name, but that part does

not
show up........

TIA
Chuck, CABGx3













  #6   Report Post  
Posted to microsoft.public.excel.programming
CLR CLR is offline
external usenet poster
 
Posts: 594
Default Code to delete Macros

Hmmmmm, methinks I've bit off more than I can chew with this
one...........time for Plan "B" I guess..........."sometimes the Dragon
wins" <G

Thanks guys........

Vaya con Dios,
Chuck, CABGx3




"Tom Ogilvy" wrote in message
...
it should solve my problem.


For your consideration (posted by Stephen Bullen)

Generally when automating the IDE, it's not a good idea to modify your own
project. What are you trying to achieve?

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.ie

--
Regards,
Tom Ogilvy


"CLR" wrote in message
...
Thanks Bob.........

A lot more there than I had sense enough to ask for, but from a cursory
look, it should solve my problem.

Vaya con Dios,
Chuck, CABGx3



"Bob Phillips" wrote in message
...
Take a look at Chip's site http://www.cpearson.com/excel/vbe.htm

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"CLR" wrote in message
...
Hi All.........

I must provide a worksheet to a Customer for their perusal. There

are
several Macros involved that I do not want them to see. What is the

code
please for me to write a "Sanitize" macro that will delete all

macros
from
the modules, workbook, etc that the Customer need not see ? I

tried
recording it, to delete individual macros by name, but that part

does
not
show up........

TIA
Chuck, CABGx3













  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Code to delete Macros

Chuck,

Are you saying that you can't get Chip's code to work? If so, give us the
details and we'll help.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"CLR" wrote in message
...
Hmmmmm, methinks I've bit off more than I can chew with this
one...........time for Plan "B" I guess..........."sometimes the Dragon
wins" <G

Thanks guys........

Vaya con Dios,
Chuck, CABGx3




"Tom Ogilvy" wrote in message
...
it should solve my problem.


For your consideration (posted by Stephen Bullen)

Generally when automating the IDE, it's not a good idea to modify your

own
project. What are you trying to achieve?

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.ie

--
Regards,
Tom Ogilvy


"CLR" wrote in message
...
Thanks Bob.........

A lot more there than I had sense enough to ask for, but from a

cursory
look, it should solve my problem.

Vaya con Dios,
Chuck, CABGx3



"Bob Phillips" wrote in message
...
Take a look at Chip's site http://www.cpearson.com/excel/vbe.htm

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"CLR" wrote in message
...
Hi All.........

I must provide a worksheet to a Customer for their perusal. There

are
several Macros involved that I do not want them to see. What is

the
code
please for me to write a "Sanitize" macro that will delete all

macros
from
the modules, workbook, etc that the Customer need not see ? I

tried
recording it, to delete individual macros by name, but that part

does
not
show up........

TIA
Chuck, CABGx3















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
delete macros sandy Excel Worksheet Functions 1 July 11th 07 11:01 PM
How can I delete all macros? Pheasant Plucker® Excel Discussion (Misc queries) 20 July 27th 06 12:49 PM
How to delete macros Jaime Stuardo Excel Discussion (Misc queries) 2 February 14th 05 02:29 PM
VBA code delete code but ask for password and unlock VBA protection WashoeJeff Excel Programming 0 January 27th 04 07:07 AM
VBA code to delete VBA code in another Workbook Chip Pearson Excel Programming 0 September 15th 03 03:54 PM


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