Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Save File without VB Module

Is there a way to save a file without a particular module being saved?

I have a client who is extremely sensitive and doesn't like the macro
security message which pops up anytime there is a file which has visual basic
code in it.
I simply want to eliminate that message from popping up and force it to
"Disable Macros" Any thoughts???
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Save File without VB Module

Hi DynamiteSkippy

You can look at Chip's page for code to do this
http://www.cpearson.com/excel/vbe.htm

I always send the file with My Mail add-in that have a option to delete the code in the file you send
http://www.rondebruin.nl/mail/add-in.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"DynamiteSkippy" wrote in message
...
Is there a way to save a file without a particular module being saved?

I have a client who is extremely sensitive and doesn't like the macro
security message which pops up anytime there is a file which has visual basic
code in it.
I simply want to eliminate that message from popping up and force it to
"Disable Macros" Any thoughts???



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default Save File without VB Module

You do not have any access to / or control over your customers security
settings. There are a few possible solutions. One would be for your customer
to change his security setting from Medium to High. This will keep the
message from popping up and disable the macros. The other is to write code
that will remove the macros. Check out this link...

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

Finally instead of putting the code in the workbook itslef you could create
an addin on your system that contains the functionality that you require.
That will keep the code on your machine and out of the workbook.
--
HTH...

Jim Thomlinson


"DynamiteSkippy" wrote:

Is there a way to save a file without a particular module being saved?

I have a client who is extremely sensitive and doesn't like the macro
security message which pops up anytime there is a file which has visual basic
code in it.
I simply want to eliminate that message from popping up and force it to
"Disable Macros" Any thoughts???

  #4   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default Save File without VB Module

Just one more thought,

I don't know the complexity of your spreadsheets, but you may consider
simply copying your sheets into a "clean" file and send that one instead. You
could even code a macro to do it for you...

HTH

"DynamiteSkippy" wrote:

Is there a way to save a file without a particular module being saved?

I have a client who is extremely sensitive and doesn't like the macro
security message which pops up anytime there is a file which has visual basic
code in it.
I simply want to eliminate that message from popping up and force it to
"Disable Macros" Any thoughts???

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Save File without VB Module

You can certainly strip VB Code from spreadsheets ... but one has to wonder
if the code is stripped would this not disable\destroy any user commissioned
fuctionality?

Can't have it both ways: either you have an automated spreadsheet with its
embedded VB code *OR* meaningless, non-functional controls and the basic data
itself.

Quoted material below is taken directly from Chip Pearson's web site:

***** Begin Quoted Material *****

Deleting All VBA Code In A Project

The procedure below will delete all the VBA code in a project. You should
use this procedure with care, as it will permanently delete the code.
Standard modules, user forms, and class modules will be removed, and code
within the ThisWorkbook module and the sheet modules will be deleted. You
may want to export the VBA code, using the procedure above, before deleting
the VBA code.

Sub DeleteAllVBA()

Dim VBComp As VBIDE.VBComponent
Dim VBComps As VBIDE.VBComponents

Set VBComps = ActiveWorkbook.VBProject.VBComponents

For Each VBComp In VBComps
Select Case VBComp.Type
Case vbext_ct_StdModule, vbext_ct_MSForm, _
vbext_ct_ClassModule
VBComps.Remove VBComp
Case Else
With VBComp.CodeModule
.DeleteLines 1, .CountOfLines
End With
End Select
Next VBComp

End Sub

***** End of Quoted Material *****

--
Penraig
Esse quam videri


"DynamiteSkippy" wrote:

Is there a way to save a file without a particular module being saved?

I have a client who is extremely sensitive and doesn't like the macro
security message which pops up anytime there is a file which has visual basic
code in it.
I simply want to eliminate that message from popping up and force it to
"Disable Macros" Any thoughts???



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Save File without VB Module

Simply save a macro code in different file and save it to xlstart folder.

this macro will be available whenever u start excel and it is isolated from
ur deliverable files.

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
Imported Visual Basic Module - Save Macros for use in Excel Pat Adams Excel Discussion (Misc queries) 1 December 2nd 09 09:44 PM
Module not file when open the excel file Thomas Excel Discussion (Misc queries) 1 July 14th 07 02:48 PM
Excell2003 (SP-1) File > Save and File > Save As.. grayed out Joe Murphy Excel Discussion (Misc queries) 0 March 9th 05 10:00 PM
Excel marcos firing on file save as but not file save Andy Excel Programming 1 August 3rd 04 10:34 AM
Save File to Another Directory, but not change Users File Save location Mike Knight Excel Programming 1 May 28th 04 09:06 PM


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