Docking and Undocking of Side Note Windows in Microsoft OneNote 2010 Notebooks in VB.NET

In this article you will find How to docking and undocking of Side Note windows in Microsoft OneNote 2010 notebooks.
  • 4077

Introduction

In this article, I am explaining how to docking and undocking of Side Note windows in Microsoft OneNote 2010 notebooks. Using this code you can dock and undock Side Note windows in Microsoft OneNote 2010 notebooks. For creating this program we use VB.

When we run this application, it dock Side Note windows in Microsoft OneNote 2010 notebooks if OneNote is not open then it show massage that OneNote is not open and you have to open/start OneNote.

Microsoft Office 2010 offer some powerful tools, using this tools you can create application. Using Microsoft Visual Basic for Applications (VBA) you can  
create your own application according to your need. These application can performer some specific task.

For creating application we can use

  • VBA host of Excel 2010
  • VBA host of PowerPoint 2010
  • VBA host of Word 2010

NOTE : OneNote 2010 is not a VBA host.

In this application you have to add Microsoft OneNote 14.0 Object Library reference from external references libraries using the Add References dialog.

Step for creating application

Step 1 : Start MS Word 2010

Clipboard022.jpg

Step 2 : Using ALT + F11 key start Visual Basic for Applications (VBA) window:

Clipboard042.jpg

Step 3 : Select on This document and Right click on it and select View code:

Clipboard043.jpg

Step 4 : Add Microsoft OneNote 14.0 Object Library reference from external references libraries using the Add References dialog.

Clipboard044.jpg

Clipboard06.jpg

Step 5 : Write Code in Visual Basic for Applications (VBA) window:

Clipboard021.jpg

Step 6 : Run the application using F5

Docking of Side Note windows in Microsoft OneNote 2010 notebooks

Clipboard10.jpg

Undocking of Side Note windows in Microsoft OneNote 2010 notebooks.

Clipboard12.jpg

When OneNote 2010 notebook is not open/start.

Clipboard14.jpg

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.