Hi there to evereybody!
Im Juan and i'm writing from argentina.
I have a TXT file with millons o lines (literally) like this:
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]22082019;01092019;30092019;20000163989;D;S;N;0,00;0,00;00;00;ETCHEVERRIGARAY JUAN CARLOS
I would like to use a command button to search for the number i've marked with bold. In addition i'd like to recieve the entire line in Excel.
Basically each line contains some tax info for argentinian members.
I've seacher the web and tried something like this:
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]Function buscar()
Open "D:\caba.txt" For Input As #1
Do While Not EOF(1)
Line Input #1 , dato
If dato = UserForm1.TextBox1 Then
Range("b3").Value = UserForm1.TextBox1
Range("c3").Value = dato
End Function
Wish you can help me.
Thanks in advantage
Juan Pablo
[/FONT]<strike>
</strike>[/FONT]
Im Juan and i'm writing from argentina.
I have a TXT file with millons o lines (literally) like this:
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]22082019;01092019;30092019;20000163989;D;S;N;0,00;0,00;00;00;ETCHEVERRIGARAY JUAN CARLOS
I would like to use a command button to search for the number i've marked with bold. In addition i'd like to recieve the entire line in Excel.
Basically each line contains some tax info for argentinian members.
I've seacher the web and tried something like this:
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]Function buscar()
Open "D:\caba.txt" For Input As #1
Do While Not EOF(1)
Line Input #1 , dato
If dato = UserForm1.TextBox1 Then
Range("b3").Value = UserForm1.TextBox1
Range("c3").Value = dato
End Function
Wish you can help me.
Thanks in advantage
Juan Pablo
[/FONT]<strike>
</strike>[/FONT]