Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default disableing a macro after it saves workbook


here is my problem. I am trying to have my workbook update itself an
put it self in a certan format when it opens then saves as a diffren
item. now i want the macro disabled so when i send the file to othe
people they just see the nice part... think ya'll can help me

--
happ
-----------------------------------------------------------------------
happo's Profile: http://www.excelforum.com/member.php...fo&userid=2636
View this thread: http://www.excelforum.com/showthread.php?threadid=39641

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default disableing a macro after it saves workbook

Hi happo

Maybe you can test the username in the first line of your macro
If Application.UserName < "Ron de Bruin" Then Exit Sub

Or use my SendMail Add in to send it and use the option to delete the code
http://www.rondebruin.nl/mail/add-in.htm


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


"happo" wrote in message
...

here is my problem. I am trying to have my workbook update itself and
put it self in a certan format when it opens then saves as a diffrent
item. now i want the macro disabled so when i send the file to other
people they just see the nice part... think ya'll can help me?


--
happo
------------------------------------------------------------------------
happo's Profile: http://www.excelforum.com/member.php...o&userid=26369
View this thread: http://www.excelforum.com/showthread...hreadid=396412



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
macro wich saves files orquidea Excel Discussion (Misc queries) 5 August 24th 08 01:02 AM
Excel workbook is corrupted, workbook automatically saves on start Paul Gooda Excel Discussion (Misc queries) 3 September 28th 06 04:51 PM
I need a macro that saves a spreadsheet on two drive at once, Chauncy_G Excel Worksheet Functions 3 July 24th 06 09:12 PM
Macro that saves excel workbook as PDF?? mydogpeanut Excel Discussion (Misc queries) 1 May 25th 06 08:56 PM
Can I run a macro/program when Excel saves worksheet? TerryM Excel Programming 1 October 6th 04 12:23 PM


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