#1   Report Post  
Don_S
 
Posts: n/a
Default Purge macros

I have a spreadsheet that had a number of macros in. I used this to create
another (SP_B), then deleted the original sheets in an attempt to break all
links. I also deleted all the macros. Now, when I "Move/Copy" a single
sheet from SP_B into another spreadsheet, all the macros which have been
deleted, come with it. How can I purge the original to get rid of any
reference to the deleted macros. They don't actually load in because they
don't exist. They must have a pointer identifying them some place.

Help me Obi-wan. You're my only hope.
  #2   Report Post  
John Michl
 
Posts: n/a
Default

What probably happened is that you deleted the macros but not the
modules in which those macros existed. To do so, open the workbook
then open VBA by pressing Alt-F11. In the tree listing on the left,
look for the word "Modules". Right click on it and choose to remove
it. If you get a prompt to export or backup the module, select no.

That should fully purge the macros.

- John

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
Protect macros? JulieD Excel Discussion (Misc queries) 6 August 25th 05 08:38 PM
Deleting Macros Mike Excel Worksheet Functions 2 May 25th 05 04:54 PM
Enabling macros Peter M Excel Discussion (Misc queries) 3 February 7th 05 10:57 PM
Transferring toolbars and macros to other computers Darrell Excel Discussion (Misc queries) 1 January 19th 05 12:21 AM
The available macros list in XL; how to suppress filename from showing KR Excel Discussion (Misc queries) 1 January 10th 05 07:20 PM


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