How to open files with VB6?

Status
Not open for further replies.

keeloq

Newbie level 3
Joined
Apr 5, 2007
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,299
I want to open file Example "C:/test.xls" using command button..any example code..
 

Re: Open file with VB6

Ex.. Code for open excel file.

Dim nFile As Excel.Application

Set nFile = New Excel.Application
nFile.Workbooks.Open "C:/test.xls"

-----------------------------------------------------------
My Favorite Embedded hardware
**broken link removed**
 

Re: Open file with VB6

i write like this..

Dim nFile As Excel.Application

Private Sub Command1_Click()
Set nFile = New Excel.Application
nFile.Workbooks.Open "C:/test.xls"
End Sub

but it not work..help!
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…