Office 2010 – 101 Code Samples (VBA) released! + Coming soon, SharePoint 2010 – 101 Code Samples: Request for code sample ideas

A few years ago I learned quite a few tricks when I downloaded the C# and VB.NET 101 Code Sample projects. Who has not used many of these code samples in VS projects?

Code samples always come handy. While videos and tech articles are always great and go deeper to explore new technologies, few things can beat LOTS of free code samples. I am trying to catch-up with LINQ and lately I’ve been experimenting with the 101 LINQ Code Samples.

Wouldn’t it be great to provide a set of Office 2010 and SharePoint 2010 code samples?

Of course! For Office/SP developers or for developers willing to explore coding possibilities with Office 2010, here’s something you may find useful.

We just released a set of Office 2010 – 101 Code Samples in VBA. We’ve compiled a good collection of Excel 2010, Office 2010, OneNote 2010, Outlook 2010, PowerPoint 2010, Visio 2010, and Word 2010 most popular samples and we’ve published them both as a packaged download and also as multiple individual code sample gallery pages where you can easily download individual code samples, copy paste, rate, and share with your friends.


Each code sample consists of approximately 5 to 50 lines of code demonstrating a distinct feature or feature set in VBA. Each sample also includes comments describing the sample, and setup code so that you can run the code with expected results or the comments will explain how to set up the environment so that the sample code runs.

We are already working on a set of SharePoint 2010 101 Code Samples. This package will provide a set of code samples including CSOM, SharePoint Online, REST, Azure, Web services and other most popular SharePoint 2010 code samples. This time we are extending an invitation to the community to request code sample ideas. What is that SharePoint 2010 code sample you’ve always wanted?

If you have suggestions for SharePoint 2010 code samples, or more Office 2010 code samples, you can leave a comment on this post or comment @ the SharePoint Developer blog for SharePoint 2010 code samples.


Comments (2)

  1. boblam says:

    I would like to see SharePoint examples that can:

    1. Read a document properties and then check out a document (if checkout is needed).

    2. Save a new version of the document (say from .doc to .docx) and then put this document back into SharePoint in the same library with the same properties.

    This would help people convert documents from the binary to XML version so that we can use Office Web Apps.  Also would like an Excel log that shows a log of each file that was looked at in the process.

  2. Andre Luiz Bernardes ( says:

    Why not see for example the 2007 version?

    These would also be very useful.

    Andre Luiz Bernardes

Skip to main content