John Guin said:
Not to steal Josh's thunder, but I already wrote the Outlook sticky notes
exporter:
http://blogs.msdn.com/descapa/archive/2007/02/14/export-your-outlook-notes-to-onenote.aspx
They don't keep in sync, so I also wrote another addin for Outlook that
opens OneNote whenever you navigate to the sticky notes folder in Outlook.
You can get it at
http://blogs.msdn.com/johnguin/archive/2007/04/16/4-16.aspx.
Let me know what you think.
--
Thanks,
John Guin
OneNote Test Team
http://blogs.msdn.com/johnguin
Thanks John. I haven't looked at your solution yet, but I did pretty much
the same thing- quick and dirty- when I first decided to start using OneNote
but using Outlook's built-in VbaProject.OTM.... No COM or .NET add-in
necessary. Very simple (although Outlook's left-side Navigation Pane doesn't
flip back to the previous folder's although the rest of Outlook does...
seems like a bug to me):
'm_oMainExplorer set in the Application_MAPILogonComplete() event.
Private Sub m_oMainExplorer_FolderSwitch()
If m_oMainExplorer.CurrentFolder.FolderPath =
Application.GetNamespace("MAPI").GetDefaultFolder(olFolderNotes).FolderPath
Then
Shell "C:\Program Files\Microsoft Office\Office12\ONENOTE.EXE"
On Error Resume Next
If Not m_oLastFolder Is Nothing Then
Set m_oMainExplorer.CurrentFolder = m_oLastFolder
Else
Set m_oMainExplorer.CurrentFolder =
Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox)
End If
On Error GoTo 0
Else
Set m_oLastFolder = m_oMainExplorer.CurrentFolder
End If
End Sub
I'll check out your exporter.