After digging through the newsgroups for hours, decoding a ton of VB code for automating Excel, converting it to C++ using VC 6.0 and MFC, and enough hair pulling to make me bald, I thought I'd post this to save others the trouble. I created the following include file containing the constants used in most common arguments to the Excel functions for searching, copying, sorting, etc. and a sample mfc program segment that demonstrates their use. Merry Christmas, Bob /* File: xlConstants.h ******************************************* / Constants used in Excel automation from / Visual C++ / / Courtesy of Bob Ray -- 2003 / / Note: The values of additional xl constants can be / found by running Excel and selecting / Tools | Macro | Visual Basic Editor. / / Press F2 to get to the Object Browser. / Type the name of the constant in the search window. / Find the constant and select it. Look at the lower / left of the window to get the value and add / it to this lis...