Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
In an EXCEL file, you type in a cell a number, then it looks for said number in a TXT file, then deletes said number from the txt file, or if not found, it pops out a message saying it was not found.

What I have tried:

I found this:
Dim Findstring = IO.File.ReadAllText("Your File Path")
Dim Lookfor as string = " " #Need specified cell

If FindString.Contains(Lookfor) then
Msgbox("Found: " & Lookfor)
end if

but it's a visual basics code, gives me error.
and still needs to delete found string.
Posted
Comments
Sergey Alexandrovich Kryukov 18-Apr-16 13:56pm    
Sorry, in this forum, we cannot deal with non-questions.
The whole idea of using all those text files sounds insane. Just don't do such things. Instead, explain your ultimate goals and ask some real questions.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900