Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Clearing Macros from Workbook

For mass data populating purposes, I created a small macro to take care
of a repetitive task. I saved the file and then started using the
macro. Once that was done, I deleted the macro, expecting that all
traces of it would be gone.

Now, when I open the file, it brings up the "this contains macros"
dialog box.

I've gone back in and used Visual Basic Editor and deleted Module 1. I
scanned through the various sheets (within the editor) and don't see
any signs of a macro.

I copied each sheet (Move/copy) into a new workbook, and saved, and
when opening the new one, it still shows the macro dialog box.

How can I remove all traces of there ever having been a macro, so users
don't get this message?


Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default Clearing Macros from Workbook

Hello,

Take a look at Chip's brilliant solution :
http://www.cpearson.com/excel/vbe.htm

HTH
Carim

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Clearing Macros from Workbook


Debra Dalgleish shows how to clean up all the remnants of macros:
http://www.contextures.com/xlfaqMac.html#NoMacros

MicroMain wrote:

For mass data populating purposes, I created a small macro to take care
of a repetitive task. I saved the file and then started using the
macro. Once that was done, I deleted the macro, expecting that all
traces of it would be gone.

Now, when I open the file, it brings up the "this contains macros"
dialog box.

I've gone back in and used Visual Basic Editor and deleted Module 1. I
scanned through the various sheets (within the editor) and don't see
any signs of a macro.

I copied each sheet (Move/copy) into a new workbook, and saved, and
when opening the new one, it still shows the macro dialog box.

How can I remove all traces of there ever having been a macro, so users
don't get this message?

Thanks


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Clearing Macros from Workbook

Thanks Dave,

I read Debra's notes, and checked my file. I didn't have any extra
items besides the standard sheets (having removed module1 earlier). I
did the Cntl-A after opening each of the worksheets vba, and deleted
all text.

Saved the file, went back in and the macro dialog box no longer comes
up.

Success.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Clearing Macros from Workbook

Debra has lots of neat stuff at her site. (You may want to bookmark it.)

MicroMain wrote:

Thanks Dave,

I read Debra's notes, and checked my file. I didn't have any extra
items besides the standard sheets (having removed module1 earlier). I
did the Cntl-A after opening each of the worksheets vba, and deleted
all text.

Saved the file, went back in and the macro dialog box no longer comes
up.

Success.


--

Dave Peterson
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
Clearing a cell based on the value of another cell (INDIRECT data) without macros Cosi About this forum 0 June 15th 10 03:30 PM
clearing macros in excel when none show up lee Excel Discussion (Misc queries) 2 October 19th 06 05:33 PM
preventing macros from clearing the undo list John Davies Excel Programming 2 January 13th 06 04:57 PM
Worksheet clearing Macros? Arlen Excel Discussion (Misc queries) 4 January 27th 05 04:04 PM
Accessing/Clearing range in hidden workbook DarrenW Excel Programming 2 July 17th 03 04:00 AM


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