Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Module In Visual Basic


How to add module in Visual Basic With Excel?


--
Sathisc
------------------------------------------------------------------------
Sathisc's Profile: http://www.thecodecage.com/forumz/member.php?userid=187
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=87929

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Module In Visual Basic

manually? in the code editor (the IDE) - you can open it with Ctrl+F11
from the Insert menu, select Module


"Sathisc" wrote:


How to add module in Visual Basic With Excel?


--
Sathisc
------------------------------------------------------------------------
Sathisc's Profile: http://www.thecodecage.com/forumz/member.php?userid=187
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=87929


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Module In Visual Basic

Are you looking for this... Launch VBE using Alt+F11. Insert module

If this post helps click Yes
---------------
Jacob Skaria


"Sathisc" wrote:


How to add module in Visual Basic With Excel?


--
Sathisc
------------------------------------------------------------------------
Sathisc's Profile: http://www.thecodecage.com/forumz/member.php?userid=187
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=87929


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Module In Visual Basic

if you want to do it in code, its also relatively straightforwards...


Sub AddAModule()
Dim md As Object
Dim wb As Workbook
Set wb = Workbooks.Add

' you can (a) programatically add a module
Set md = wb.VBProject.VBComponents.Add(1)

and also (b) import a text file as a module
Set md = wb.VBProject.VBComponents.Import("{full address here}")

With md

'blah

End With

End Sub


"Sathisc" wrote:


How to add module in Visual Basic With Excel?


--
Sathisc
------------------------------------------------------------------------
Sathisc's Profile: http://www.thecodecage.com/forumz/member.php?userid=187
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=87929


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
microsoft visual basic-compile error in hidden module:modMain Roman Piotr Excel Discussion (Misc queries) 3 January 23rd 13 01:49 PM
Imported Visual Basic Module - Save Macros for use in Excel Pat Adams Excel Discussion (Misc queries) 1 December 2nd 09 09:44 PM
How do I initiate a Visual Basic Module in Excel? Bill Excel Programming 3 May 12th 09 02:47 PM
Excel default module when opening visual basic editor Mr TJA[_2_] Excel Programming 0 August 18th 08 04:53 PM
exel : visual basic: compile error in hidden module : Distmon cde01 Excel Discussion (Misc queries) 1 July 26th 05 01:15 PM


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