MSDN Documentation

Microsoft Developer Network - Excel

Excel Sample Code

Explore a rich collection of code samples demonstrating various functionalities and scenarios within Microsoft Excel. These samples are designed to help you build powerful applications and automate tasks.

Data Manipulation

Import Data from CSV

Learn how to programmatically import data from Comma Separated Values files into Excel sheets.

View Sample

Filter and Sort Data

Demonstrates effective techniques for filtering and sorting large datasets within Excel.

View Sample

Work with Tables

Explore sample code for creating, modifying, and interacting with Excel Tables.

View Sample

Charts & Visualization

Create Dynamic Charts

Sample code for generating charts that update automatically with data changes.

View Sample

Conditional Formatting

Implement advanced conditional formatting rules for better data insights.

View Sample

Workbook Management

Create New Workbooks

Programmatically create new Excel workbooks with custom sheets and structures.

View Sample

Save and Export Workbooks

Samples for saving workbooks in various formats and exporting data.

View Sample

Automation & VBA

VBA Macro Examples

A collection of common VBA macros for automating repetitive tasks.

View Sample

Interact with other Office Apps

Learn how to use Excel VBA to interact with Word, Outlook, and other Office applications.

View Sample

More samples are added regularly. Check back often!