Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Removing macros using VBA

Hi
in the VBA editor goto 'Tools - References' and check if all required
references are set

--
Regards
Frank Kabel
Frankfurt, Germany

"jgranda" schrieb im Newsbeitrag
...
I am using the code from the pearson website but there is a case of

user
error - me.

I am receiving the following error message:
"Compile error: User-defined type not defined"

The code I am using is:
Sub DeleteModule()
Dim VBComp As VBComponent
Set VBComp = ThisWorkbook.VBProject.VBComponents("Module1")
ThisWorkbook.VBProject.VBComponents.Remove VBComp
End Sub

When I run the debugger, it is highlighting the line Dim VBComp As
VBComponent.

Can someone give me advice on how to correct?

Thanks,

Joe


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
Removing Macros Erin Excel Worksheet Functions 4 January 13th 10 01:18 PM
Removing macros from workbook Darrell Excel Discussion (Misc queries) 1 October 4th 05 03:56 AM
Removing circular references without the use of macros? mattflow Excel Discussion (Misc queries) 3 July 20th 05 04:29 PM
removing unwanted macros... melchizadek132 Excel Discussion (Misc queries) 1 June 17th 05 01:24 AM
Removing Macros tina Excel Programming 2 June 21st 04 08:14 PM


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