Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!
Dim stUser As String = "" Dim iOtherCount As Integer = 0 Dim iSearch As Integer = 0 Dim stStage As String = "" Try 'Start Outlook. ' If it is already running, you'll use the same instance... Dim olApp As outlook.Application olApp = CreateObject("Outlook.Application") ' Logon. Doesn't hurt if you are already running and logged on... Dim olNs As outlook.NameSpace olNs = olApp.GetNamespace("MAPI") olNs.Logon() Dim folderContacts As outlook.MAPIFolder = olNs.GetDefaultFolder(outlook.OlDefaultFolders.olFolderContacts) Dim searchFolder As outlook.Items = folderContacts.Items Dim olItem As outlook.ContactItem Dim Updated As String = "" Dim counter As Integer = 0 For Each olItem In searchFolder If olItem.Class = outlook.OlObjectClass.olContact Then stUser = olItem.FullName If Not (olItem.OtherTelephoneNumber = Nothing) Then iOtherCount += 1 Add_Text(olItem.FullName & " - " & olItem.OtherTelephoneNumber, False) End If iSearch += 1 End If Next MsgBox("Complete: " & counter & " Searched: " & iSearch) Catch ex As Exception MsgBox(stStage & vbCrLf & ex.Message, MsgBoxStyle.Critical, "User Update: " & stUser & " Other Count = " & iOtherCount & " Searched: " & iSearch) Add_Text(ex.Message, True) End Try
|Index was out of range. Must be non-negative and less than the size of the collection parameter name:index||10||27|
|Exchange 2010 - Departed user's mailbox reconnected to new employee but old email address still shows in Outlook 2013||18||39|
|VB.NET return row from SQL to DataSet and get column values ?||3||24|
|MS outlook 2016 deleted auto complete cache||4||19|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
16 Experts available now in Live!