(Contents)(Previous)(Next)

FindUserByLastName()

Description: Returns a User object based on the passed in surname.
Syntax: object.FindUserByLastName(name)
Parameters:
object Required, the Session object
name The user's last name
Remarks: This function searches the list of users looking for a match by surname. If a single match is found, a User object is returned, representing the matched user. If more than one matching user is found or no matching user is found Nothing is returned. The match is case in-sensitive.
Returns: Returns a User object.
Example:
Dim session As Object

Dim user As Object

Set session = CreateObject("OfficeTalk.Session")

Set user = session.FindUserByLastName("Bates")


Next