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 SampleFilter and Sort Data
Demonstrates effective techniques for filtering and sorting large datasets within Excel.
View SampleWork with Tables
Explore sample code for creating, modifying, and interacting with Excel Tables.
View SampleCharts & Visualization
Create Dynamic Charts
Sample code for generating charts that update automatically with data changes.
View SampleConditional Formatting
Implement advanced conditional formatting rules for better data insights.
View SampleWorkbook Management
Create New Workbooks
Programmatically create new Excel workbooks with custom sheets and structures.
View SampleSave and Export Workbooks
Samples for saving workbooks in various formats and exporting data.
View SampleAutomation & VBA
Interact with other Office Apps
Learn how to use Excel VBA to interact with Word, Outlook, and other Office applications.
View SampleMore samples are added regularly. Check back often!