LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default How can i include a .vbs file in another .vbs file

I'd just open the text file (VBA code, not VBS code!) and then copy|paste into a
module inside the VBE.

But just as you can export modules as .BAS files (that's the normal suffix), you
can import those .bas (or other text files).

Read Chip Pearson's page:
http://www.cpearson.com/excel/vbe.aspx

If I have common procedures that I want available each time I open excel (not
just a repository for the code), I'd create another workbook (saved as an
Addin???) and have that open with excel.

Store a reference of a excel workbook wrote:

Hi Dave,

Actually i have created a lot of common excel functions that can be used
later and stored them in a vbs file (just for modularity). Now i wanted to
know the way to call those excel functions from the other vbs files.

"Dave Peterson" wrote:

Did you mean to post a question about .vbs files in a forum dedicated to excel?

Store a reference of a excel workbook wrote:

I have created a library of common functions and named it "functions.vbs".
Now i wanted to include it in other vbs files so that i can use functions
defined in it. Please tell me the way to do it.


--

Dave Peterson


--

Dave Peterson
 
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
Include file Guy Normandeau Excel Programming 2 July 8th 06 03:43 PM
How do I include file name and path in the header? Matthew Connellan Excel Discussion (Misc queries) 4 May 23rd 06 04:50 PM
include VBA macros as text file Suresh[_4_] Excel Programming 4 April 19th 06 04:00 PM
Can i include a vbscript file with an xml spreadsheet? Neil.Wills Excel Discussion (Misc queries) 0 September 1st 05 12:34 AM
Include external file .BAS in Excel VBA locoloco[_2_] Excel Programming 2 October 20th 04 04:38 PM


All times are GMT +1. The time now is 02:14 AM.

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"