login username

  • Thread starter Thread starter Ranjit kurian
  • Start date Start date
R

Ranjit kurian

I have created a user.xls file which contain employees NT names in the first
column

I need a macro, so that when ever the person try to open my main excel file,
it
should check the NT name of his/her in user.xls file,and if the NT name
exist in
user.xls file he should be allowed to open my excel file...
 
What you are asking for is realtively straight forward using an on open event
macro checking Environ("UserName") against your list with a
application.worksheetfunction.countif

That being said any security you put on the file will be relatively easy to
defeat by not enabling macros...
 
Hi,

The answer and the security; or lack of security, issues are the same as I
gave in your other post. Instead of opening a text file open a workbook and
verify the username against the list.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top