#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 293
Default remove a Macro

Hi

How do you remove a macro?

Stewart
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default remove a Macro

Simply delete it but don't forget to also delete the module in which it
resides.

See Debra's site for more info on removing macros.

http://www.contextures.on.ca/xlfaqMac.html#NoMacros


Gord Dibben MS Excel MVP

On Fri, 7 Nov 2008 17:01:01 -0800, stew
wrote:

Hi

How do you remove a macro?

Stewart


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default remove a Macro

Hi,

1. In the VBE (Visual Basic Editor) either open the module in which the code
is located, highlight it, and press delete.
2. Or right click the module in the Project window at the top left of the
screen and choose Remove Module1 (pressing Del will not delete the module)

A few points:
a. You can't remove the Sheet or Workbook objects, for them you can use
method 1 above or you can, in the case of Sheet delete the sheet on the Excel
side, the associated code will go.
b. If the code is in a User Form you can delete it by method 1 or by using a
similar approach to #2 to remove the UserForm.
c. Leaving the Module in when deleting the some or all of the code contained
in it is not required. Of course you don't want to do it if you want to keep
some of the code.

-
--
Thanks,
Shane Devenshire


"stew" wrote:

Hi

How do you remove a macro?

Stewart

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 - Remove #n/a Schwimms Excel Discussion (Misc queries) 3 February 14th 08 06:29 PM
macro 4.remove D. Excel Discussion (Misc queries) 2 September 29th 07 02:52 PM
Macro to Remove Macro Text Rob Excel Discussion (Misc queries) 1 June 21st 07 11:49 PM
Macro to remove characters YanYan Excel Discussion (Misc queries) 5 June 13th 07 12:55 AM
remove macro Ron New Users to Excel 2 June 1st 06 02:57 PM


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