如何在VB中打开一个NOTEPAD文件

VBGirl

新手上路
注册
2004-07-10
消息
1
荣誉分数
0
声望点数
0
我想在VB中调用NotePad, 比如说有一个BUTTON, CLICK就会启动NOTEPAD, 然后可以在NOTEPAD里面编辑.
请问如何实现这个功能呢?

另外请问如何从EXCEL中读取数据呢? 我现在从.TXT文件中读取文件可以, 但是想从EXCEL中读取,请问如何实现呢?

谢谢你的帮助! VBGIRL
 
If you want to use notepad in VB, you have to use a form which is fired by a button. The form is used for the container of the notepad.
You have to add reference to your project when you want to read data from or save data to Excel, and have to creat an object that points to the Excel. When you read data from Excel, you have to assign the cell's number. Vb5 has a simple method that I used several years before, but I forgot it.
Try
 
后退
顶部