Ao fix relative outlook links.mmbas

From ActivityOwnerWiki
Jump to: navigation, search
'ao_fix_relative_outlook_links
'28Nov2009 activityowner.com
'MindManager 8.2 currently sees Outlook hyperlinks as relative file links
'if the hyperlink type is set to relative. In order to address this, run
'this macro on a map and it will convert the link type to absolute type.
Sub Main
	For Each t In ActiveDocument.Range(mmRangeAllTopics)
		If t.HasHyperlink Then
			If InStr(t.Hyperlink.Address,"Outlook")=1 Then t.Hyperlink.Absolute=True
		End If
	Next
End Sub