Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ina ina is offline
external usenet poster
 
Posts: 120
Default Save a file without saving the macro

Hello guys,

I would like to know how to save a file without saving the macro that
generates the save mode.

Ina

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Save a file without saving the macro

Simplest to go to the VBE (Alt + F11) and delete the module that holds the
macro's:
Ctrl + R, right-click the module and do remove Module1 or whatever it is
called.
Make double-sure you remove the right module and not something else that is
important to keep.
Then save the workbook.

RBS

"ina" wrote in message
oups.com...
Hello guys,

I would like to know how to save a file without saving the macro that
generates the save mode.

Ina


  #3   Report Post  
Posted to microsoft.public.excel.programming
ina ina is offline
external usenet poster
 
Posts: 120
Default Save a file without saving the macro

yes but this file will be save everyday I need to do a script that
remove it automatically without going everyday to delete it.

Ina

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Save a file without saving the macro

Look at this:
http://www.cpearson.com/excel/vbe.htm

RBS

"ina" wrote in message
oups.com...
yes but this file will be save everyday I need to do a script that
remove it automatically without going everyday to delete it.

Ina


  #5   Report Post  
Posted to microsoft.public.excel.programming
ina ina is offline
external usenet poster
 
Posts: 120
Default Save a file without saving the macro

thanks I tried that but and had a lot of problem because to delete it
is better to copy the file in another place and after delete. but I
result my problem like this

Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Copy
ActiveWorkbook.SaveAs Filename: ... this copy only the result in
the sheet but not the code.

Ina



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 run a macro upon saving a file but prior to actual save? Hawk186 Excel Discussion (Misc queries) 2 June 6th 08 09:38 PM
can't save VBA script when saving excel file thinktwice Excel Discussion (Misc queries) 5 December 27th 06 07:38 AM
Save as prompt missing saving a .csv file bdw Excel Discussion (Misc queries) 1 May 9th 06 10:10 PM
Macro file save as, saving sheet not workbook annep[_10_] Excel Programming 15 January 21st 06 10:39 PM
When I save a file I consistently get a message about saving a co. cynspin Excel Discussion (Misc queries) 2 February 1st 05 10:30 PM


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