Add a File to the Current Project

Tuesday Nov 19th 2002 by Sam Huggill
Share:

Add a file to the current project.

When making an add-in, you may want this functionality. This tip shows how:
'// Requires a reference to the_
 VB Extensibility Type Library 

Public Sub AddFile_
(VBInst As VBIDE.Application) 
Dim AP As Object 
Set AP = VBInst.ActiveProject 
AP.AddFile (App.Path & "\y.xxx") 
Set AP = Nothing 
End Sub
Share:
Home
Mobile Site | Full Site
Copyright 2017 © QuinStreet Inc. All Rights Reserved