Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default login username

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...

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default login username

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...
--
HTH...

Jim Thomlinson


"Ranjit kurian" wrote:

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...

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default login username

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

"Ranjit kurian" wrote:

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...

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
login username Ranjit kurian Excel Programming 8 June 6th 08 12:50 PM
username and password when login Ranjit kurian Excel Programming 1 May 23rd 08 10:05 AM
Username and password login. Moh Excel Programming 10 December 21st 07 03:36 PM
UserName login code Bruise[_2_] Excel Programming 2 March 10th 06 04:02 AM
Excel 2000 required username and password login for database query ISTech Setting up and Configuration of Excel 0 September 7th 05 01:11 AM


All times are GMT +1. The time now is 05:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"