By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,092 Members | 1,347 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,092 IT Pros & Developers. It's quick & easy.

Help! Changing Text with vb

P: 3
Hi, I'm completely new in Visual Basic,
My problem is this:

I want to create a simple application wich will open specified text document and edit it's specified place.

For begining , it will be good if someone tells me how to make the application open the specified text document when the button is pressed.

Thanks,
Mar 29 '07 #1
Share this Question
Share on Google+
6 Replies


yoda
100+
P: 291
Hi, I'm completely new in Visual Basic,
My problem is this:

I want to create a simple application wich will open specified text document and edit it's specified place.

For begining , it will be good if someone tells me how to make the application open the specified text document when the button is pressed.

Thanks,
wats the code you have so far? under the cmd button put
Expand|Select|Wrap|Line Numbers
  1. Show.text1.txt
or wat ever your document is called, i think that will work but if it doesn't then don't get mad at me cuz i'm not really a VB Guru.

Yoda
Mar 29 '07 #2

yoda
100+
P: 291
u can all ways start a thread that says "How to open text document in VB6" and u might get some more answers or you can search the website for this title and see wat comes up.

regards Yoda
Mar 29 '07 #3

vijaydiwakar
100+
P: 579
u can all ways start a thread that says "How to open text document in VB6" and u might get some more answers or you can search the website for this title and see wat comes up.

regards Yoda
This task can be done with the help of object of word and/or
use OLE object
Try it
Good Luck
Mar 29 '07 #4

P: 3
Thanks For Your answers,

I found out how to open text file in vb, but the problem is:

The text file I opened contains some data and my application is written to modify the specified place of this text and save it then.

Any Ideas?

Regards,
George
Mar 30 '07 #5

vijaydiwakar
100+
P: 579
Thanks For Your answers,

I found out how to open text file in vb, but the problem is:

The text file I opened contains some data and my application is written to modify the specified place of this text and save it then.

Any Ideas?

Regards,
George
use ole it will open file for u and ur able to modify and save it also
Mar 30 '07 #6

P: 3
use ole it will open file for u and ur able to modify and save it also
Thanks vijaydiwakar!
I used OLE object as was shown in one of the tutorials and it helped me.

RESPECT.
Mar 31 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.