Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA-How to insert vba code file in a project using coding rather than manual import

I have several vba code files (*.vba, *.frm).
How can I add, not import, them to another project using VBA coding
just like insert API functions? Am I clear?

BTW, how to using vba code to add reference (like solver)?

Thanks

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default VBA-How to insert vba code file in a project using coding rather than manual import

You can add the files to a project with code like

ThisWorkbook.VBProject.VBComponents.Import _
Filename:="C:\temp\module1.bas"


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Excel4Engineer "
wrote in message
...
I have several vba code files (*.vba, *.frm).
How can I add, not import, them to another project using VBA

coding,
just like insert API functions? Am I clear?

BTW, how to using vba code to add reference (like solver)?

Thanks.


---
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
Import underscore in coding every after 2 digits Manos Excel Worksheet Functions 4 April 23rd 10 04:08 PM
How do I import and merge Excel data into a master project file? Sentry16 Excel Discussion (Misc queries) 0 June 11th 07 03:39 PM
how do i insert a code bar or link to a adobe designer file Luis Arechiga Excel Worksheet Functions 1 December 19th 05 02:10 AM
How do I insert/update VBA code into a sheet? (using a CLS file?) Chip Pearson Excel Programming 0 September 14th 03 10:37 PM
Use VBA code to open a text file with the import wizard George Wilson[_2_] Excel Programming 2 September 10th 03 07:55 PM


All times are GMT +1. The time now is 05:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"