Advertising
advertising
related pastes to tag 'vba'
- 1630004 - VBA: Get Username from PC: user name vba vb
-
- Option Compare Database
- Option Explicit
- Private Declare Function GetComputerNameA Lib "kernel32" (ByVal lpBuffer As String, nSize As Long) As Long
- Private Declare Function GetUserName Lib "ADVAPI32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
- Public Function GetCurrentUserName() As String
- On Error GoTo Err_GetCurrentUserName
- 1629994 - Access: Get PC Name : pc name vba vb
-
- Private Declare Function GetComputerNameA Lib "kernel32" (ByVal lpBuffer As String, nSize As Long) As Long
- Private Declare Function GetUserName Lib "ADVAPI32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
- Public Function GetComputerName() As String
- On Error GoTo Err_GetComputerName
- Dim Username As String * 255
- Call GetComputerNameA(Username, 255)
- GetComputerName = Left$(Username, InStr(Username, Chr$(0)) - 1)
- 1629963 - Access: Get Username: access vba username vb
-
- Private Declare Function GetComputerNameA Lib "kernel32" (ByVal lpBuffer As String, nSize As Long) As Long
- Private Declare Function GetUserName Lib "ADVAPI32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
- Public Function GetCurrentUserName() As String
- On Error GoTo Err_GetCurrentUserName
- Dim lpBuff As String * 25
- Dim ret As Long, Username As String
- 680807 - PC1033 Refactored: vba
-
- ' Declarations
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- Dim hasData As Boolean
- Dim theRow As Integer
- ' Main Sub
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- Sub ExportContact()
- 658208 - PC1033 Refactored: vba
-
- ' Declarations
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- Dim hasData As Boolean
- Dim theRow As Integer
- ' Main Sub
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- Sub ExportContact()
- 658196 - PC1033 Refactored: vba
-
- ' Declarations
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- Dim hasData As Boolean
- Dim theRow As Integer
- ' Main Sub
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- Sub ExportContact()
- 658185 - PC1033 Refactored: vba
-
- ' Declarations
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- Dim hasData As Boolean
- Dim theRow As Integer
- ' Main Sub
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- Sub ExportContact()
- 658183 - PC1033 Refactored: vba
-
- ' Declarations
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- Dim hasData As Boolean
- Dim theRow As Integer
- ' Main Sub
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- Sub ExportContact()
- 658182 - PC1033 Refactored: vba
-
- ' Declarations
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- Dim hasData As Boolean
- Dim theRow As Integer
- ' Main Sub
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- Sub ExportContact()
- 658176 - PC1033 Refactored: vba
-
- ' Declarations
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- Dim hasData As Boolean
- Dim theRow As Integer
- ' Main Sub
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- Sub ExportContact()