PC Review


Reply
Thread Tools Rate Thread

Delete All VBA

 
 
=?Utf-8?B?VmlrcmFtIERoZW1hcmU=?=
Guest
Posts: n/a
 
      16th Jun 2007
Hi all,
I am trying Chip Pearson's VB Code for deleting all the VBA Code from a
workbook. But it gives me as error message.
Message is :
Compile Error:
User Defined Type is not defined.
Could anybody tell me why this type error occurred & is there any way to
resolve this as I am trying use the code on scheduled time.

Thanks in advance.

--
Thanks,
Vikram P. Dhemare
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      16th Jun 2007
Read Chip's instructions once more.

You forgot to set a reference (and that's explained Chip's notes).

Vikram Dhemare wrote:
>
> Hi all,
> I am trying Chip Pearson's VB Code for deleting all the VBA Code from a
> workbook. But it gives me as error message.
> Message is :
> Compile Error:
> User Defined Type is not defined.
> Could anybody tell me why this type error occurred & is there any way to
> resolve this as I am trying use the code on scheduled time.
>
> Thanks in advance.
>
> --
> Thanks,
> Vikram P. Dhemare


--

Dave Peterson
 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      16th Jun 2007
Read Chip page good

>>>Before using these procedures, you'll need to set a reference in VBA to the VBA Extensibility library


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Vikram Dhemare" <(E-Mail Removed)> wrote in message news:FEB1A8F7-E738-4ABA-BAC7-(E-Mail Removed)...
> Hi all,
> I am trying Chip Pearson's VB Code for deleting all the VBA Code from a
> workbook. But it gives me as error message.
> Message is :
> Compile Error:
> User Defined Type is not defined.
> Could anybody tell me why this type error occurred & is there any way to
> resolve this as I am trying use the code on scheduled time.
>
> Thanks in advance.
>
> --
> Thanks,
> Vikram P. Dhemare

 
Reply With Quote
 
=?Utf-8?B?VmlrcmFtIERoZW1hcmU=?=
Guest
Posts: n/a
 
      17th Jun 2007
Thanks for your early response.
I tried to set the reference in the reference diolog box but there is no
such VBA Extensibility Library available.
I am using Excel 2003.
Kindly revert where I am going wrong?

--
Thanks,
Vikram P. Dhemare


"Ron de Bruin" wrote:

> Read Chip page good
>
> >>>Before using these procedures, you'll need to set a reference in VBA to the VBA Extensibility library

>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "Vikram Dhemare" <(E-Mail Removed)> wrote in message news:FEB1A8F7-E738-4ABA-BAC7-(E-Mail Removed)...
> > Hi all,
> > I am trying Chip Pearson's VB Code for deleting all the VBA Code from a
> > workbook. But it gives me as error message.
> > Message is :
> > Compile Error:
> > User Defined Type is not defined.
> > Could anybody tell me why this type error occurred & is there any way to
> > resolve this as I am trying use the code on scheduled time.
> >
> > Thanks in advance.
> >
> > --
> > Thanks,
> > Vikram P. Dhemare

>

 
Reply With Quote
 
Helmut Weber
Guest
Posts: n/a
 
      17th Jun 2007
Hi Vikram,

Microsoft Visual Basic for Applications Extensibility 'Version'

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 
Reply With Quote
 
=?Utf-8?B?VmlrcmFtIERoZW1hcmU=?=
Guest
Posts: n/a
 
      17th Jun 2007
Hi Helmut,
Thanks. Its working.
--
Thanks,
Vikram P. Dhemare


"Helmut Weber" wrote:

> Hi Vikram,
>
> Microsoft Visual Basic for Applications Extensibility 'Version'
>
> --
> Greetings from Bavaria, Germany
>
> Helmut Weber, MVP WordVBA
>
> Win XP, Office 2003
> "red.sys" & Chr$(64) & "t-online.de"
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete data in a linked Excel sheet using Access code or seql delete Rocky Microsoft Access External Data 9 26th Jun 2005 12:42 AM
Re: Macro to delete sheets and saves remaining file does not properly delete module gazornenplat Microsoft Excel Programming 0 22nd Jun 2005 01:12 AM
Macro to delete sheets and saves remaining file does not properly delete module pherrero Microsoft Excel Programming 7 21st Jun 2005 05:16 PM
Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below Annette Microsoft Excel Programming 2 21st Sep 2004 02:40 PM
Re: When I highlight a sentence to delete, Word won't let me. I have to backspace. How can I deleted selected text with my delete key? Bill Foley Microsoft Word Document Management 1 4th Feb 2004 11:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:56 PM.