Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to open a file in vb for editing or any other purpose

Status
Not open for further replies.

rohitt

Programmer
Jul 1, 2002
42
IN
Is there any way to open a file in vb except the OLE object method..to be precise i want to open a .mpp file and make changes in it programatically..

i know how to do that from its vba ..MS Project2000

but now i want it from vb....can anybody tell me how ??????

for eg..in vba i do it like this ...

browse a file from common dialog for opening ...use fileopen method ...which i am unable to find in vb ...DOES IT EXIST !!!!!!!!!!!!!

then after opening manipulate it by code of my module..which was written later after opening file..

In VB i am just able to open file through OLE object...now where should my code go which i use to write in vba after opening file...i mean to say code that use to manipulate those files which i hv opened ...

Eagerly waiting for response

luv ya rohit Its nice to be important, but it's more important to be nice.
 
You should be able to include the Microsoft Project Object Library which should provide all the objects and functionality that you need. I suspect, that the VB code would be quite similar to the VBA code. Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
If it's a text file, just use the method discussed in
VISUAL BASIC 6, by Scott Warner.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top