ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Allow VBA Program to use in Specific Computer (https://www.excelbanter.com/excel-programming/411880-allow-vba-program-use-specific-computer.html)

[email protected]

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

Mike H

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


NateBuckley

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



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com