Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default Allow VBA Program to use in Specific Computer


Hi,

I made a VBA application, and I want to use this application in only
one computer, suppose I am working in a company, and all computers are
connected to the Network. every one has his own username and
password.

I want to give this VBA PROGRAM to Network User "ShahzadZ"

and I want to use this program only for "ShahzadZ" not others. even
my computer can be use for different Network Users.

OR

My this program can be restricted only one PC.

how to do this .......... pls give me the suggessions.

Waiting for your response.

Best Regards

Shahzad
Madinah Hilton
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Allow VBA Program to use in Specific Computer

Maybe

Sub sonic()
If Environ("Username") = "ShahzadZ" Then
'Your code
Else
Exit Sub
End If

End Sub

Mike

" wrote:


Hi,

I made a VBA application, and I want to use this application in only
one computer, suppose I am working in a company, and all computers are
connected to the Network. every one has his own username and
password.

I want to give this VBA PROGRAM to Network User "ShahzadZ"

and I want to use this program only for "ShahzadZ" not others. even
my computer can be use for different Network Users.

OR

My this program can be restricted only one PC.

how to do this .......... pls give me the suggessions.

Waiting for your response.

Best Regards

Shahzad
Madinah Hilton

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default Allow VBA Program to use in Specific Computer

Hello, I'm unsure on a full solution for your problem but I can point you in
the direction of getting the Computer Name on the network -

Goto this link

http://allapi.mentalis.org/apilist/G...erNameEx.shtml

And check out the example, remember to view the "Immediate Window" to view
the output, then perhaps you could do some kind of IF ComputerNameDnsHostname
= "Wanted Name" THEN Do something



" wrote:


Hi,

I made a VBA application, and I want to use this application in only
one computer, suppose I am working in a company, and all computers are
connected to the Network. every one has his own username and
password.

I want to give this VBA PROGRAM to Network User "ShahzadZ"

and I want to use this program only for "ShahzadZ" not others. even
my computer can be use for different Network Users.

OR

My this program can be restricted only one PC.

how to do this .......... pls give me the suggessions.

Waiting for your response.

Best Regards

Shahzad
Madinah Hilton

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
Fatloss computer program Angel vasquez New Users to Excel 0 October 16th 07 12:22 AM
What program do I need to download clip art onto my computer? Ashley-T Excel Discussion (Misc queries) 1 September 16th 07 07:40 PM
excel program be or not in computer x taol Excel Programming 2 October 6th 06 07:55 AM
Excel program only runs on one computer JWM6[_21_] Excel Programming 1 May 5th 06 04:28 PM


All times are GMT +1. The time now is 05:27 PM.

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"