LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Deleting a 'workbook' macro


Good day all, I wonder if anyone has come across this before?

I have a 'private sub' macro which runs when a template is opened. Th
utility of this is to assign an incremental Project ID to the templat
each time it is opened. Obviously, the template is then saved under
different name...as well as being saved as an .xls file.

The problem: The private sub code is still there when the new name
worksheet is opened and the increment still clicks up one numbe
everytime the sheet is opened. I have been trying to write code t
insert after the existing code in the .xlt file which will effectivel
delete the code once the template has assigned a number.

I am afraid I have not been able to do this, so any help would b
greatly appreciated.

Thank you

--
chi
-----------------------------------------------------------------------
chiv's Profile: http://www.excelforum.com/member.php...fo&userid=2340
View this thread: http://www.excelforum.com/showthread.php?threadid=37337

 
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
deleting workbook saqib New Users to Excel 1 June 24th 08 03:22 PM
Deleting Workbook from others Julia Excel Worksheet Functions 2 April 22nd 08 06:34 PM
Finding and deleting macro in a workbook starguy Excel Discussion (Misc queries) 4 June 23rd 06 11:35 AM
Deleting workbook SidBord Excel Programming 0 July 14th 04 07:52 PM
Deleting workbook Tom Ogilvy Excel Programming 0 July 14th 04 03:50 PM


All times are GMT +1. The time now is 12:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"