Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Network logon
Hi,
Some time ago, someone replied with a method to get the network logon and used createobject. It has the same functionality as Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" _ (ByVal lpBuffer As String, nSize As Long) As Long Can someone refresh my mind. TIA. With kind regards, JP |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Network logon
You are a little bit vague. I did a google search for the following and got lots of different answers VBA GetUserName advapi32.dll createobject -- joel ------------------------------------------------------------------------ joel's Profile: 229 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=164049 Microsoft Office Help |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Network logon
Hi Joel,
I used the API before to show 1 sheet in a workbook to a specific network logon. Someone showed overhere another method to do the same. With kind regards, JP "joel" wrote in message ... You are a little bit vague. I did a google search for the following and got lots of different answers VBA GetUserName advapi32.dll createobject -- joel ------------------------------------------------------------------------ joel's Profile: 229 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=164049 Microsoft Office Help |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Network logon
You don't need to use createobject you can use environ() method UserName = environ("UserName") I'm not sure what other login username you are using that requires a createobject. Are you using an Internet Explorer and then login? -- joel ------------------------------------------------------------------------ joel's Profile: 229 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=164049 Microsoft Office Help |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Network logon
I recently tried the environ method and it didn't work for some users. I had
to replace it with the following. http://www.mvps.org/access/api/api0008.htm -- HTH, Barb Reinhardt "joel" wrote: You don't need to use createobject you can use environ() method UserName = environ("UserName") I'm not sure what other login username you are using that requires a createobject. Are you using an Internet Explorer and then login? -- joel ------------------------------------------------------------------------ joel's Profile: 229 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=164049 Microsoft Office Help . |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Network logon
Some environmental parameters can bne different on different PCs. to check the envirnonmental parameters go to a dos window and type SET. -- joel ------------------------------------------------------------------------ joel's Profile: 229 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=164049 Microsoft Office Help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can I pass network logon name to a cell in a spreadsheet? | Excel Worksheet Functions | |||
Logon | New Users to Excel | |||
logon | Excel Discussion (Misc queries) | |||
Win XP Logon Name | Excel Programming | |||
Use Windows Network logon as password | Excel Programming |