Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21185

Search in VB6 / VB.net from excel

$
0
0
Hi ppl!!! Merry Christmas!


I'm trying to do an app in VB6, a search in a textbox in Change event



I have to do a search in a textbox and returns the result in a Listbox, I've done in VBA from Excel and is easy. The problem is that doing this in VB6 or VB.NET. The code does'nt work.

But i think i need call the file right?

Something like this?


Code:

Dim objExcel As Excel.Application
Dim xBook As Excel.Workbook
Set objExcel = New Excel.Application
Set xBook = objExcel.Workbooks.Open("c:\Buscador1.xls")

I upload the file so you can watch it.

Attachment 94533

PD: Is possible to put an Image control to display the image that is in column D of the table?

Attachment 94535

Thanks!

PD2: Sorry for my english!
Attached Images
 
Attached Files

Viewing all articles
Browse latest Browse all 21185

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>