Hi,
I have five columns in a work sheet. one column has telephone number, another has name of the person, the other 3 coluns have different information.
I want to write a macro, so that it asks for the phone number in a pop-up box, looks for that number in the whole excel file, and if it finds it, get the name of person from the cell (Bn) and displays it in a pop-up text box. n is the number of cell.
If the phone number is not in the list, it displays "Not found".
I prefer that the when the user clicks on the file, it just runs the macro and does not display the contents of the file. However, the file admin should be able to modify the contents of the file.
I have never written a macro in my life, so all the help is appreciated.
I do have some VB experience.
Thanks,
Indiana
I have five columns in a work sheet. one column has telephone number, another has name of the person, the other 3 coluns have different information.
I want to write a macro, so that it asks for the phone number in a pop-up box, looks for that number in the whole excel file, and if it finds it, get the name of person from the cell (Bn) and displays it in a pop-up text box. n is the number of cell.
If the phone number is not in the list, it displays "Not found".
I prefer that the when the user clicks on the file, it just runs the macro and does not display the contents of the file. However, the file admin should be able to modify the contents of the file.
I have never written a macro in my life, so all the help is appreciated.
I do have some VB experience.
Thanks,
Indiana