
Excel
Get flash to fully experience Pearltrees
Excel Dashboards - Templates, Tutorials, Downloads and Examples
Some Useful VBA Functions
Excel
The code is tested in Outlook Express, Windows Mail, Windows Live Mail and Outlook and It may or may not work with other email clients. All code on this page will work in Excel 97-2010 or Excel 2000-2010. If you use Lotus Notes click here : http://www.rondebruin.nl/notes.htm If you use Apple Mail or Outlook 2011 on a Mac click here : http://www.rondebruin.nl/mac.htm#Mail There are four Microsoft mail programs: Microsoft Outlook, Outlook Express, Windows Mail (replace Outlook Express in Vista) and Windows Live Mail.
Example Code for sending mail from Excel
Important read this : The code on this page is only working with Outlook and not with Outlook Express or Windows Mail. If you not use Outlook see the examples in the first section on my mail index page. Copy the code in a Standard module, if you just started with VBA see this page. http://www.rondebruin.nl/code.htm Check out this page for Tips If you want to change the code on this page.
Mail a small message
If you are looking for Excel VBA code samples, here are some pages that should be useful to you. Click on the links above to access the code. I also have a few more generic prcedures listed here. Please note that most of the examples on this site were written for Office 2003, but will work (for the most part) on Office 2007 and 2010. Don't forget to check out the Video Tutorials page ! Fix Badly Imported Formulas
Excel VBA
Create Default Workbook Template (book.xlt) Create a blank workbook, customized with number of sheets, fonts, styles etc. Hit F12 to save the workbook, in the 'Save As Type' dropdown, choose 'Template' For the filename, type 'book' (to save the template as book.xlt in your XLSTART folder) This will be the default workbook whenever you start Excel.
Workbook and Worksheet Templates
varType Function
The varType Function in Excel VBA Here are some custom VBA functions that use the varType function to check the variable type. Very useful when debugging your application to test if your variables are being implemented properly, they can also be used as drop-in procedures to check the expected value of a variable. In keeping with the spirit of modular programming, they are small self-contained procedures that can be copied and pasted elsewhere.Sample Outlook Automation
Process all Files in a Folder
Freeze Excel Panes with VBA
If you want to freeze panes programmatically, here's what you need to do. I recorded a macro of myself freezing panes a few times manually. Here is the resulting code (scrubbed): The trick (unfortunately) is you have to select the cell below and to the right of where you want to stop the worksheet from scrolling. If you try to freeze panes without selecting a cell, it just randomly freezes wherever it wants. Here are two procedures that encapsulate the freezing panes function.IncSight DB IncSight DB lets you set up professional Excel dashboards linked to an Excel database. Set up your first Excel dashboard report in less than an hour. Add any number of reports.
Excel Dashboards
Excel Add-In (XLA) Best Practices and Design Techniques
This article contains information regarding best practices for developers creating add-ins using Excel's VBA editor in Office 2003. They may also apply to other Excel versions. I will update this page from time to time.Adjusting comment properties can be frustrating, especially if you're stuck doing it manually. Here is some sample VBA code that lets you adjust all comments at once, to keep your workbook looking consistent. See All about Comment shapes for even more sample VBA code.

