' please what's wrong with this code

A

alain

' in VBA from access 2002 form

Private Sub Commande10_Click()
Dim strFileName As String
Dim objOneNote As OneNote.CSimpleImporter

Set objOneNote = New OneNote.CSimpleImporter
'the folder name is "Cabinet"
'the page name is " brigitte " => (3-brigitte )
' onenote 2003 sp1 show up with an error message

objOneNote.NavigateToPage "Cabinet.one", "brigitte"
End Sub
anyone can provide the wright code
thanks for help
 
A

Andrew Watt [MVP - InfoPath]

' in VBA from access 2002 form

Private Sub Commande10_Click()
Dim strFileName As String
Dim objOneNote As OneNote.CSimpleImporter

Set objOneNote = New OneNote.CSimpleImporter
'the folder name is "Cabinet"
'the page name is " brigitte " => (3-brigitte )
' onenote 2003 sp1 show up with an error message

objOneNote.NavigateToPage "Cabinet.one", "brigitte"
End Sub
anyone can provide the wright code
thanks for help

Alain,

It would make it easier to comment if you told us what, specifically,
you want to do.

Do you want to import? Or navigate? Both?

Also what error message are you seeing?

Thanks

Andrew Watt
MVP - InfoPath
 
A

alain

hi
navigate only
the 1° error message " MS office one note had a problem and will close"
then 2° error message " automation error"
the debugger stops on this line :
objOneNote.NavigateToPage "Cabinet.one", "brigitte"
thanks for replying
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top