Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Delete All VBA

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Delete All VBA

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
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Delete All VBA

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" wrote in message ...
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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Delete All VBA

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" wrote in message ...
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


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 163
Default Delete All VBA

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"


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Delete All VBA

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
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 to delete sheets and saves remaining file does not properly delete module pherrero Excel Programming 1 June 22nd 05 01:12 AM
Macro to delete sheets and saves remaining file does not properly delete module bhawane Excel Programming 0 June 21st 05 04:54 PM
Macro to delete sheets and saves remaining file does not properly delete module bhawane Excel Programming 0 June 21st 05 04:53 PM
Macro to delete sheets and saves remaining file does not properly delete module bhawane Excel Programming 0 June 21st 05 04:53 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[_4_] Excel Programming 2 September 21st 04 02:40 PM


All times are GMT +1. The time now is 08:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"