Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default deleting source code without IDE

Previously, a post answered the question of how to run code that would
delete embedded code in an application:
www.cpearson.com/excel/vbe.htm

However, as far as I can tell this is run within the IDE environment.

Is there a way to accomplish the same result using VBA alone? (I'm
running excel 2003 on windows XP)

My need: After the user inputs data into a template and the data is
reduced, I want to strip out the code, instructions, userforms, etc
before the template is saved under a new file name.

I currently get rid of everything but the VBA modules and userforms,
which add about 800K to each file.

Art
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 389
Default deleting source code without IDE

Code that deletes code is regularly seen as a virus by anti virus programs.
If this app is used by other people, the workbook may end up being
quarantined and not easily retrievable.

A better approach to doing what you want is to create a code workbook which
works with a template which has no code.

--
Regards,
Tim Zych
http://www.higherdata.com
Workbook Compare - Excel data comparison utility

http://www.higherdata.com/sql/batchsqlfromexcel.html
Create batch SQL from Excel

"c1802362" wrote in message
...
Previously, a post answered the question of how to run code that would
delete embedded code in an application:
www.cpearson.com/excel/vbe.htm

However, as far as I can tell this is run within the IDE environment.

Is there a way to accomplish the same result using VBA alone? (I'm
running excel 2003 on windows XP)

My need: After the user inputs data into a template and the data is
reduced, I want to strip out the code, instructions, userforms, etc
before the template is saved under a new file name.

I currently get rid of everything but the VBA modules and userforms,
which add about 800K to each file.

Art



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default deleting source code without IDE

thanks for the heads up - I hadn't considered the anti-virus issue

Art
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
receiving cell value after deleting source Morto Kopor Excel Discussion (Misc queries) 2 June 19th 09 03:34 AM
Keep total of cells in a cell after deleting source data CVinje Excel Discussion (Misc queries) 8 February 22nd 09 04:13 PM
Deleting cells from chart source data, causing problems Caeres Excel Discussion (Misc queries) 0 October 3rd 08 05:23 PM
SOURCE CODE Vicencia Vitus Excel Programming 1 April 30th 04 10:50 AM
Deleting code in a file with code.. KimberlyC Excel Programming 3 March 4th 04 09:24 PM


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