Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-25-2017, 07:30 AM
mihnea96 mihnea96 is offline Importing .frm and .bas files using code Windows 7 32bit Importing .frm and .bas files using code Office 2010 32bit
Novice
Importing .frm and .bas files using code
 
Join Date: Apr 2017
Posts: 26
mihnea96 is on a distinguished road
Default Importing .frm and .bas files using code

Hi,

i'm trying to make a word document that when opened installs (imports) the macros into the computer, but i've been trying to use the code bellow and kept getting the error "Method 'Import' of object'_VBComponents failed". could you help me out, please?
i've wanted to do this from Excel as i have other installs there as well and it would've been easier to do it from only one file, but it doesn't work.

code:
ActiveDocument.VBProject.VBComponents.Import Environ("SystemDrive") & Environ("HomePath") &...........


thanks in advance!
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 03:40 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