PC Review


Reply
Thread Tools Rate Thread

Allow VBA Program to use in Specific Computer

 
 
shahzad4u_ksa@yahoo.com
Guest
Posts: n/a
 
      2nd Jun 2008

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 With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      2nd Jun 2008
Maybe

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

End Sub

Mike

"(E-Mail Removed)" 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 With Quote
 
NateBuckley
Guest
Posts: n/a
 
      2nd Jun 2008
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



"(E-Mail Removed)" 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
UAC for a specific Program, how to turn off? Frenchy Windows Vista General Discussion 26 25th Mar 2007 04:50 PM
Unable to view shares from one specific computer to another specific computer, all the rest work fine. philip.kluss@gmail.com Windows XP Networking 1 25th Feb 2006 10:56 PM
how to run specific program when RDP start. Alfred Windows XP Work Remotely 2 8th Oct 2004 02:13 AM
Can program run at specific times? jm Windows XP General 2 9th Jul 2004 06:16 PM
my program won't work on computer without framework, dow do i make a program that runs on every windows 2k/xp system ? bart Microsoft C# .NET 11 26th Jan 2004 05:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:13 AM.