Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Save Workbook As .xlsx to Remove Macros?

Hi everyone, reading posts on this board have been extremely helpful in
writing my macros. I've got a file running some macros to get up-to-date
information upon opening. The last step is to allow users to save a copy or
snapshot of this information their local drive, but to do that I need to
strip all the macros from the code so they are just left with the data that
was generated when they opened it.

My idea here was to use the BeforeSave event, supress alerts and save as a
..xlsx file (removing all macros from the workbook). However, I would also
like the user to still be able to select his or her desired save location.
I'm a little confused on the code to do this...can I set the save type (or at
least the default save type) to .xlsx and still let the user select the save
path?

Any help would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Save Workbook As .xlsx to Remove Macros?

Hi char507

See
http://www.rondebruin.nl/saveas.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"char507" wrote in message ...
Hi everyone, reading posts on this board have been extremely helpful in
writing my macros. I've got a file running some macros to get up-to-date
information upon opening. The last step is to allow users to save a copy or
snapshot of this information their local drive, but to do that I need to
strip all the macros from the code so they are just left with the data that
was generated when they opened it.

My idea here was to use the BeforeSave event, supress alerts and save as a
.xlsx file (removing all macros from the workbook). However, I would also
like the user to still be able to select his or her desired save location.
I'm a little confused on the code to do this...can I set the save type (or at
least the default save type) to .xlsx and still let the user select the save
path?

Any help would be greatly appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Save Workbook As .xlsx to Remove Macros?

Thanks Ron.

Sorry I didn't reply sooner, I stumbled upon this link earlier and it fixed
me right up.
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
using macros to insert and remove calculations a the workbook holy41 Excel Programming 2 July 21st 06 06:25 PM
Remove all macros and objects in Excel, Save and Quit [email protected] Excel Programming 0 June 2nd 06 12:38 PM
Remove all macros and objects in Excel, Save and Quit [email protected] Excel Discussion (Misc queries) 0 June 2nd 06 12:24 PM
Remove macros on save as Quake Excel Programming 2 October 22nd 04 01:19 PM
Remove Macros from Workbook ostq Excel Programming 3 September 26th 03 06:21 AM


All times are GMT +1. The time now is 05:26 AM.

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"