Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 07-25-2017, 07:56 AM
gmaxey gmaxey is offline Importing .frm and .bas files using code Windows 7 32bit Importing .frm and .bas files using code Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,636
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Must be your path statement

This works for a module in the active documents parent folder:
Code:
Sub Document_New()
 ActiveDocument.VBProject.VBComponents.Import ThisDocument.Path & "\Module1.bas"
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
 

Tags
auto install, install from excel, word macros



Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing Pub files into another Pub document drlynda Publisher 0 11-20-2014 02:02 PM
Importing .frm and .bas files using code Importing .msg files into another PC ? bill123 Office 2 08-15-2011 09:47 AM
Is there any way of importing Indicators field through code? Prabhakar Project 0 04-07-2011 05:50 AM
Importing many vcf files in excel shiflerg Excel 0 01-26-2011 09:16 AM
Importing CSV files into Oulook victoria61485 Outlook 5 12-03-2010 05:33 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:54 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft