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 IamaSherpa 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.
 
Unfortunately, OLE is the only way that you can accomplish this. The OLE class objects that are available are what allows you to modify an office document within an entirely seperate office application. Why do you have the constraint for not using OLE anyway? Neil Konitzer
Freisoft
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top