VSTO VBA Interop Sample

This sample demonstrates how to call a method in a document-level customization for Microsoft Office Excel from Visual Basic for Applications (VBA) code in the workbook.

 
 
 
 
 
4 Star
(1)
6,044 times
Add to favorites
2/19/2011
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

C#
VB.NET
// Copyright © Microsoft Corporation. All Rights Reserved. 
// This code released under the terms of the 
// Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.)

using System;
namespace NorthwindEmployees
{
    [System.Runtime.InteropServices.ComVisible(true)]
    public interface IThisWorkbook
    {
        string GetFirstName(int id);
        string GetLastName(int id);
        string GetNotes(int id);
    }
}