#1   Report Post  
Posted to microsoft.public.excel.misc
michaelberrier
 
Posts: n/a
Default VBIDE.VBComponent

I'm trying to use a macro to delete all VBA code in a workbook, and the
very beginning starts with "Dim myVBA As VBIDE.VBComponent". This
causes a "User-Defined Type not Defined" error. I've seen that used in
other macros and in a handful of entries on this group, but I can't
make heads or tales of it or how to make it work for me.

  #2   Report Post  
Posted to microsoft.public.excel.misc
Chip Pearson
 
Posts: n/a
Default VBIDE.VBComponent

In VBA, go to the Tools menu, choose References, and select
"Microsoft Visual Basic For Applications Extensibility Library".


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"michaelberrier" wrote in message
ups.com...
I'm trying to use a macro to delete all VBA code in a workbook,
and the
very beginning starts with "Dim myVBA As VBIDE.VBComponent".
This
causes a "User-Defined Type not Defined" error. I've seen that
used in
other macros and in a handful of entries on this group, but I
can't
make heads or tales of it or how to make it work for me.



  #3   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default VBIDE.VBComponent

You need to set a reference to the Microsoft Visual Basic for Applications
Extensibility library, ToolsReferences.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"michaelberrier" wrote in message
ups.com...
I'm trying to use a macro to delete all VBA code in a workbook, and the
very beginning starts with "Dim myVBA As VBIDE.VBComponent". This
causes a "User-Defined Type not Defined" error. I've seen that used in
other macros and in a handful of entries on this group, but I can't
make heads or tales of it or how to make it work for me.



  #4   Report Post  
Posted to microsoft.public.excel.misc
michaelberrier
 
Posts: n/a
Default VBIDE.VBComponent

Thanks. If I swear sometimes I can't read.


Bob Phillips wrote:
You need to set a reference to the Microsoft Visual Basic for Applications
Extensibility library, ToolsReferences.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"michaelberrier" wrote in message
ups.com...
I'm trying to use a macro to delete all VBA code in a workbook, and the
very beginning starts with "Dim myVBA As VBIDE.VBComponent". This
causes a "User-Defined Type not Defined" error. I've seen that used in
other macros and in a handful of entries on this group, but I can't
make heads or tales of it or how to make it work for me.


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



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