Jay Polo
asked on
Get VPN or Internet Access as a MsgBox - Excel Macro Code
Help, does anyone know how to get the vpn or Internet access in excel macro code and show it as a msgbox? - Jay
I'm not clear what you want to achieve here. Could you elaborate more on what the purpose is exactly?
ASKER
And what if connected with LAN, WiFi and VPN? What to choose to display? And what is the purpose - or, how does it matter at all?
ASKER
And what if connected with LAN, WiFi and VPN? yes, if needed. All I need is to get where the user is connected (eg: group.net and would should as a MsgBox)
What to choose to display? just a MsgBox
And what is the purpose - or, how does it matter at all? we are checking how many users are using the VPN, connected at school, at home, or in the office.
What to choose to display? just a MsgBox
And what is the purpose - or, how does it matter at all? we are checking how many users are using the VPN, connected at school, at home, or in the office.
ASKER
Sub ShowMeDetails ()
MsgBox Environ("COMPUTERNAME")
MsgBox Environ("USERPROFILE")
MsgBox Environ("USERDOMAIN")
MsgBox ("VPN = Internet Access") 'I need this code to run my file
End Sub
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
is this MS Excel VBA Macro?
No, it is a cmd.exe batch file (.cmd or .bat).
ASKER
Aww. I appreciate your efforts. But I would need something Excel macro related language. :(
You know your way to output stuff results in "endless" message boxes popping up each with a single information? Not user-friendly ...
We certainly can provide code to generate the batch file, run it, and display the results from VBA, but I'm not sure you should want to do that ...
We certainly can provide code to generate the batch file, run it, and display the results from VBA, but I'm not sure you should want to do that ...
ASKER
I'll try that one if it's ok? hopefully that would complete this file.
ASKER
up :(
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Idea in ipconfig, parsing in vba