Hi Alok,

Try this command :

Environ("UserDomain")

Cheers,
Lohith


On Jan 6, 10:16 am, Alokeshwar Tiwary <alokeshwar.tiw...@yahoo.com>
wrote:
> Is there a way to retrieve domain name using vba...? I need this to make sure 
> that my vba tool will run only within the network of my compay.
>
> Thanks and Regards,
> Alokeshwar Tiwary
>  
>
> ___________________________________________________________________________­______________________
> "There are known knowns. These are things we know that we know. There are 
> known unknowns. That is to say, there are things that we know we don't know. 
> But there are also unknown unknowns. There are things we don't know we don't 
> know."
>
>       Unlimited freedom, unlimited storage. Get it now, 
> onhttp://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
--~--~---------~--~----~------------~-------~--~----~
Visit the blog to download Excel tutorials at 
http://www.excel-macros.blogspot.com

To post to this group, send email to excel-macros@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/excel-macros?hl=en

Visit & Join Our Orkut Community at 
http://www.orkut.com/Community.aspx?cmm=22913620

To Learn VBA Macros Please visit http://www.vbamacros.blogspot.com

To see the Daily Excel Tips, Go to:
http://exceldailytip.blogspot.com
 
If you find any spam message in the group, please send an email to Ayush @ 
jainayus...@gmail.com
-~----------~----~----~----~------~----~------~--~---

Reply via email to