Click here to Skip to main content
15,905,136 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Searchprogram for text in multi excel sheets Pin
abjac@16-Jul-12 10:30
abjac@16-Jul-12 10:30 
GeneralRe: Searchprogram for text in multi excel sheets Pin
JR21216-Jul-12 19:01
JR21216-Jul-12 19:01 
GeneralRe: Searchprogram for text in multi excel sheets Pin
Richard MacCutchan16-Jul-12 21:16
mveRichard MacCutchan16-Jul-12 21:16 
GeneralRe: Searchprogram for text in multi excel sheets Pin
abjac@16-Jul-12 22:35
abjac@16-Jul-12 22:35 
GeneralRe: Searchprogram for text in multi excel sheets Pin
Richard MacCutchan16-Jul-12 22:50
mveRichard MacCutchan16-Jul-12 22:50 
GeneralRe: Searchprogram for text in multi excel sheets Pin
abjac@16-Jul-12 23:23
abjac@16-Jul-12 23:23 
GeneralRe: Searchprogram for text in multi excel sheets Pin
abjac@17-Jul-12 5:44
abjac@17-Jul-12 5:44 
GeneralRe: Searchprogram for text in multi excel sheets Pin
abjac@18-Jul-12 10:48
abjac@18-Jul-12 10:48 
HI I tried it and it didnt work get this error
'ListBoxItem' is not defined.

But now i am also not clear of if this is correct. I think this is for search in a folder but i want to search in an excel sheet after the word and display the info in Listbox2 where the word is found in the excel file


Any suggestions?

abjac

Dim Item As ListBoxItem
Dim dir As String

item = ListBox1.SelectedItem
dir = item.Content.ToString

Dim filenames = My.Computer.FileSystem.FindInFiles(dir, TextBox1.Text, True, FileIO.SearchOption.SearchAllSubDirectories)

For Each filename As String In filenames
ListBox2.Show()
Next
GeneralRe: Searchprogram for text in multi excel sheets Pin
Richard MacCutchan18-Jul-12 21:43
mveRichard MacCutchan18-Jul-12 21:43 
GeneralRe: Searchprogram for text in multi excel sheets Pin
abjac@19-Jul-12 0:40
abjac@19-Jul-12 0:40 
GeneralRe: Searchprogram for text in multi excel sheets Pin
Richard MacCutchan19-Jul-12 2:05
mveRichard MacCutchan19-Jul-12 2:05 
QuestionVB and API Pin
Darryl Gschwind14-Jul-12 10:41
Darryl Gschwind14-Jul-12 10:41 
AnswerRe: VB and API Pin
Wes Aday14-Jul-12 12:11
professionalWes Aday14-Jul-12 12:11 
GeneralRe: VB and API Pin
Darryl Gschwind14-Jul-12 14:13
Darryl Gschwind14-Jul-12 14:13 
QuestionEnable usb ports Pin
aliali7414-Jul-12 3:48
aliali7414-Jul-12 3:48 
AnswerRe: Enable usb ports Pin
Wes Aday14-Jul-12 3:57
professionalWes Aday14-Jul-12 3:57 
AnswerRe: Enable usb ports Pin
ZappaDog30-Jul-12 8:28
ZappaDog30-Jul-12 8:28 
Questiondata connectivity Pin
shubham salwan12-Jul-12 18:16
shubham salwan12-Jul-12 18:16 
AnswerRe: data connectivity Pin
Nick Otten12-Jul-12 20:20
Nick Otten12-Jul-12 20:20 
QuestionDocument Searching Pin
MacOwl11-Jul-12 16:41
MacOwl11-Jul-12 16:41 
AnswerRe: Document Searching Pin
Nick Otten11-Jul-12 21:40
Nick Otten11-Jul-12 21:40 
GeneralRe: Document Searching Pin
MacOwl11-Jul-12 21:47
MacOwl11-Jul-12 21:47 
GeneralRe: Document Searching Pin
Nick Otten11-Jul-12 22:09
Nick Otten11-Jul-12 22:09 
GeneralRe: Document Searching Pin
MacOwl11-Jul-12 23:04
MacOwl11-Jul-12 23:04 
GeneralRe: Document Searching Pin
Nick Otten12-Jul-12 1:12
Nick Otten12-Jul-12 1:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.