Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using a macro to write modules

Richard,

The code below was copied/pasted from Chip Pearson's web site, which
has more examples of programming the VB Editor

Sub AddModule()
Dim VBComp As VBComponent
Set VBComp =
ThisWorkbook.VBProject.VBComponents.Add(vbext_ct_S tdModule)
VBComp.Name = "NewModule"
Application.Visible = True
End Sub

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


---
Message posted from http://www.ExcelForum.com/

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
Chaining 6 macro modules Sherif Excel Discussion (Misc queries) 3 April 15th 08 09:51 PM
What may cause macro modules to be created by accident? herrdue Excel Worksheet Functions 2 July 16th 07 06:02 PM
Macro to import modules into a worksheet michaelberrier Excel Discussion (Misc queries) 1 June 4th 06 07:39 PM
is it possible to execute write to the fields in another .xsl form a macro in another .xsl? e.g. some way to load another .xsl into an .xsl macro and write to its data? Daniel Excel Worksheet Functions 1 June 23rd 05 11:38 PM
Using a macro to write modules Ron de Bruin Excel Programming 0 January 7th 04 09:20 PM


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