Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default Removing code in 'This Workbook'

I am using Excel 97.

I am wanting to progammatically remove the code in the 'This workbook' module.

Can anyone assist with some code please?

Thanks

--
Mark
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 114
Default Removing code in 'This Workbook'

Hi Mark,

See topic "Deleting All Code From A Module" from Chip Pearson's Site

http://www.cpearson.com/excel/vbe.htm



Regards,
Shah Shailesh
http://members.lycos.co.uk/shahweb/


*** Sent via Developersdex http://www.developersdex.com ***
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Removing code in 'This Workbook'

Sub Rid()
With ThisWorkbook.VBProject.VBComponents("ThisWorkbook" ).CodeModule
.DeleteLines 1, .CountOfLines
End With
End Sub


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Mark" wrote in message
...
I am using Excel 97.

I am wanting to progammatically remove the code in the 'This workbook'

module.

Can anyone assist with some code please?

Thanks

--
Mark



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
Saving & Removing VB Code from WB NoodNutt Excel Worksheet Functions 4 April 24th 10 11:56 AM
removing a toolbar with code Papa Jonah Excel Programming 4 February 22nd 05 07:49 PM
Removing Workbook_Open code Tom Ogilvy Excel Programming 0 September 1st 04 09:04 PM
Removing VBA Code (programatically) Marnie R Excel Programming 1 February 13th 04 01:02 AM
Removing a module with code KimberlyC Excel Programming 2 January 13th 04 09:51 PM


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