send to onenote

D

David Cleland

hi all.

I want to store a years worth of minutes (8 committees each with a meeting
per month). I was using "send to onenote" but I want to be able to search
the text.

I have been copying and pasting the text in to onenote - is there any way
send the contents directly and it be text etc and not an image ?

am I using Onenote wrong ? should I be using something like coppernic and
storing the minutes in their native word files ?

Just I like the idea of being able to click and see last months meeting in a
tap !

David
 
A

Al Borges

Hi David:

I think that if you use the new SP1 there are 2 methods of doing this-
command line switches and the xml import. The second method is relatively
difficult. Look in:

Customizing OneNote 2003 SP 1 Using New Command Line Switches,
http://msdn.microsoft.com/library/d...n-us/odc_on2003_ta/html/odc_ON_CLSwitches.asp

Importing Content into OneNote 2003 SP1,
http://msdn.microsoft.com/library/d...n-us/odc_on2003_ta/html/odc_ON_CLSwitches.asp

Using Excel VBA to Push Content to OneNote,
http://www.mrexcel.com/tip078.shtml

Good luck!

Al
 
A

Al Borges

Hi David!

In OneNote SP1 there are 2 ways of sending text to OneNote- a moderately
difficult manner (command line switches), and a very very difficult manner
(CSimpleImporterClass). Check out:

-- Customizing OneNote 2003 SP 1 Using New Command Line Switches,
http://msdn.microsoft.com/office/de...n-us/odc_on2003_ta/html/odc_ON_CLSwitches.asp

--Importing Content into OneNote 2003 SP1 Preview,
http://blogs.msdn.com/andrew_may/archive/2004/04/22/118321.aspx

-- Using Excel VBA to Push Content to OneNote,
http://www.mrexcel.com/tip078.shtml

Good luck!

Regards,
Al
 
A

Al Borges

Hi David:

I apologize for the preceding 2 similar posts- my IE crashed just after I
sent off the first post, and I thought that I had not gone through.

Anyhow, here's my actual code that I had lost, and now found, that works, to
send a bunch of text from Word to OneNote:

Private Sub CommandButton5_Click()
'Dim strFileName As String
Dim bStrGuid As String
Dim bstrPath As String
Dim objOneNote As OneNote.CSimpleImporter 'Class
Dim strpath, strswitch, strcmd
'strpath = "c:\program files\microsoft office\office11\onenote.exe"
'strswitch = " /new" & " C:\testdoc122.doc" & " /PASTE"
'strcmd = strpath & strswitch
'Shell strcmd, vbMaximizedFocus
'Exit Sub

'strpath = "c:\program files\microsoft office\office11\onenote.exe"
'strswitch = " /paste"
'strcmd = strpath & strswitch
'Shell strcmd, vbMaximizedFocus
'objOneNote.Import "C:\onenote2003test.xml"

'Application.Selection.SetRange Start:=Selection.Start,
End:=ActiveDocument.Content.End
'pplication.Selection.Copy

strpath = "c:\program files\microsoft office\office11\onenote.exe"
strswitch = " /new C:\onenoteimport.one"
strcmd = strpath & strswitch
Shell strcmd, vbMaximizedFocus

Textbox2.Copy

strswitch = " /paste"
strcmd = strpath & strswitch
Shell strcmd, vbMaximizedFocus

SendKeys "%{TAB}", True

Application.Selection.SetRange Start:=Selection.Start,
End:=ActiveDocument.Content.End
Application.Selection.Copy

strswitch = " /paste"
strcmd = strpath & strswitch
Shell strcmd, vbMaximizedFocus

End Sub

Hope this helps...

Regards,
Al
 

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