PC Review


Reply
Thread Tools Rate Thread

deleting source code without IDE

 
 
c1802362
Guest
Posts: n/a
 
      16th Jul 2009
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
 
Reply With Quote
 
 
 
 
Tim Zych
Guest
Posts: n/a
 
      16th Jul 2009
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" <(E-Mail Removed)> wrote in message
news:79e98846-a18f-480e-af3f-(E-Mail Removed)...
> 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



 
Reply With Quote
 
c1802362
Guest
Posts: n/a
 
      17th Jul 2009
thanks for the heads up - I hadn't considered the anti-virus issue

Art
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Panel with vivible=false in source code / large source Jens-Oliver Murer Microsoft ASP .NET 1 17th Oct 2008 02:00 PM
Can't open source to view source code of webpage in one of my acco =?Utf-8?B?TXIgSmFja3BvdGJveA==?= Windows XP General 1 26th Nov 2005 04:46 PM
Deleting A Link (Source File) Deanna Microsoft Excel Worksheet Functions 1 24th Aug 2004 04:30 PM
iexplorer shows source code instead source code's output, i.e., the actual page Michael Windows XP Internet Explorer 0 17th Sep 2003 02:06 AM
Deleting Linked Source(s) J. Saathoff Microsoft Excel Misc 1 12th Sep 2003 11:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:01 PM.