• C++ Programming for Financial Engineering
    Highly recommended by thousands of MFE students. Covers essential C++ topics with applications to financial engineering. Learn more Join!
    Python for Finance with Intro to Data Science
    Gain practical understanding of Python to read, understand, and write professional Python code for your first day on the job. Learn more Join!
    An Intuition-Based Options Primer for FE
    Ideal for entry level positions interviews and graduate studies, specializing in options trading arbitrage and options valuation models. Learn more Join!

Testing your installation of Excel for C++ course

Daniel Duffy

C++ author, trainer
C++:
// ExcelHelloWorld.cpp
//
// (C) Datasim Education BV 2012
//
#include <string>
#include <iostream>

// Office 2003 (Office v11) (Will give error (actually a warning) that you need W2K or higher to run the result)
/*#import "C:\Program Files\Common Files\Microsoft Shared\office11\mso.dll" rename("DocumentProperties", "DocumentPropertiesXL") rename("RGB", "RBGXL")
#import "C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\vbe6ext.olb"
#import "C:\Program Files\Microsoft Office\Office11\EXCEL.EXE" rename("DialogBox", "DialogBoxXL") rename("RGB", "RBGXL") rename("DocumentProperties", "DocumentPropertiesXL") rename("ReplaceText", "ReplaceTextXL") rename("CopyFile", "CopyFileXL") no_dual_interfaces
*/
// Excel 2010
#import "C:\Program Files\Common Files\Microsoft Shared\office14\mso.dll" rename("DocumentProperties", "DocumentPropertiesXL") rename("RGB", "RGBXL")
#import "C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\vbe6ext.olb"
#import "C:\Program Files\Microsoft Office\Office14\EXCEL.EXE" rename("DialogBox", "DialogBoxXL") rename("RGB", "RGBXL") rename("DocumentProperties", "DocumentPropertiesXL") rename("ReplaceText", "ReplaceTextXL") rename("CopyFile", "CopyFileXL") no_dual_interfaces

// Other versions here

#include "atlsafe.h"    // Data types

// Extract a value from a cell
double GetDoubleFromCell(Excel::_WorksheetPtr sheet, CComBSTR cell)
{
    Excel::RangePtr range=sheet->GetRange(CComVariant(cell));
    _variant_t value=range->GetValue2();
    return value;
}

// Put a double value in an Excel cell
void SetCellValue(Excel::_WorksheetPtr sheet, CComBSTR cell, double value)
{
    Excel::RangePtr range=sheet->GetRange(CComVariant(cell));
    range->Value2=value;
}

int main()
{

    Excel::_ApplicationPtr xl;        // Pointer to Excel.

   
    try
        {
            // Initialize COM Runtime Libraries.
            CoInitialize(NULL);

            // Start excel application.
            xl.CreateInstance(L"Excel.Application");
            xl->Visible = VARIANT_TRUE;
            xl->Workbooks->Add((long) Excel::xlWorksheet);
        
            // Rename "Sheet1" to "Chart Data".
            Excel::_WorkbookPtr workbook = xl->ActiveWorkbook;
            //Excel::_WorksheetPtr sheet = workbook->Worksheets->GetItem("Sheet1");
            Excel::_WorksheetPtr sheet = workbook->Worksheets->GetItem(1); //Language-independent
            sheet->Name = "Chart Data";
   

            // Get the parameters
            double T=GetDoubleFromCell(sheet, "B2");
            double r=GetDoubleFromCell(sheet, "B3");
           
            double val = 2.0;

            // Display values in Excel
            SetCellValue(sheet, "B9", val);
            SetCellValue(sheet, "B10", val*3);

        }
        catch( _com_error & error )
        {
            bstr_t description = error.Description();
            if( !description )
            {
                description = error.ErrorMessage();
            }
            std::cout << std::string(description);

        }

        CoUninitialize();

        return 0;
}
Create an empty Win32 console project and put the following file in it. Change directory names as necessary.

Compile and link the project.

Does it run?
 
@Daniel Duffy

Ok I tried making a new project and put this in. It did not work.
Once again, I got similar errors in excel.thl.

I think the reason is that I had to manually download the mso.dll and VBA\VBA6\vbe6ext.olb files.
They didn't exist on my computer when I installed Office and VS which is weird.

But in that case, what should I do?
C++:
TestExcelsource.cpp
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\testexcelsource.cpp(1): error C2059: syntax error : '/'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\testexcelsource.cpp(16): warning C4192: automatically excluding 'IFont' while importing type library 'C:\Program Files (x86)\Microsoft Office\Office14\EXCEL.EXE'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\testexcelsource.cpp(16): warning C4192: automatically excluding 'IPicture' while importing type library 'C:\Program Files (x86)\Microsoft Office\Office14\EXCEL.EXE'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(2553): error C2039: 'CropPtr' : is not a member of 'Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(2553): error C2146: syntax error : missing ';' before identifier 'Crop'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(2553): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(2553): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(2594): error C2039: 'CropPtr' : is not a member of 'Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(2594): error C2146: syntax error : missing ';' before identifier 'GetCrop'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(2594): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(2594): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(2594): warning C4183: 'GetCrop': missing return type; assumed to be a member function returning 'int'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(2935): error C2039: 'PictureEffectsPtr' : is not a member of 'Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(2935): error C2146: syntax error : missing ';' before identifier 'PictureEffects'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(2935): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(2935): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(3012): error C2039: 'PictureEffectsPtr' : is not a member of 'Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(3012): error C2146: syntax error : missing ';' before identifier 'GetPictureEffects'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(3012): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(3012): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(3012): warning C4183: 'GetPictureEffects': missing return type; assumed to be a member function returning 'int'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(6851): error C2039: 'SmartArtLayoutsPtr' : is not a member of 'Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(6851): error C2146: syntax error : missing ';' before identifier 'SmartArtLayouts'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(6851): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(6851): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(6853): error C2039: 'SmartArtQuickStylesPtr' : is not a member of 'Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(6853): error C2146: syntax error : missing ';' before identifier 'SmartArtQuickStyles'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(6853): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(6853): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(6855): error C2039: 'SmartArtColorsPtr' : is not a member of 'Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(6855): error C2146: syntax error : missing ';' before identifier 'SmartArtColors'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(6855): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(6855): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7816): error C2039: 'SmartArtLayoutsPtr' : is not a member of 'Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7816): error C2146: syntax error : missing ';' before identifier 'GetSmartArtLayouts'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7816): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7816): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7816): warning C4183: 'GetSmartArtLayouts': missing return type; assumed to be a member function returning 'int'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7817): error C2039: 'SmartArtQuickStylesPtr' : is not a member of 'Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7817): error C2146: syntax error : missing ';' before identifier 'GetSmartArtQuickStyles'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7817): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7817): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7817): warning C4183: 'GetSmartArtQuickStyles': missing return type; assumed to be a member function returning 'int'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7818): error C2039: 'SmartArtColorsPtr' : is not a member of 'Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7818): error C2146: syntax error : missing ';' before identifier 'GetSmartArtColors'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7818): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7818): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7818): warning C4183: 'GetSmartArtColors': missing return type; assumed to be a member function returning 'int'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7855): error C2039: 'MsoFileValidationMode' : is not a member of 'Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7855): error C2146: syntax error : missing ';' before identifier 'GetFileValidation'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7855): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7855): warning C4183: 'GetFileValidation': missing return type; assumed to be a member function returning 'int'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7857): error C2027: use of undefined type 'Excel::Office'
1>          c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7855) : see declaration of 'Excel::Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7857): error C2146: syntax error : missing ',' before identifier '_arg1'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7983): error C2027: use of undefined type 'Excel::Office'
1>          c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7855) : see declaration of 'Excel::Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7983): error C2146: syntax error : missing ';' before identifier 'Scripts'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7983): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7983): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8077): error C2027: use of undefined type 'Excel::Office'
1>          c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7855) : see declaration of 'Excel::Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8077): error C2146: syntax error : missing ';' before identifier 'MailEnvelope'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8077): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8077): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8411): error C2027: use of undefined type 'Excel::Office'
1>          c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7855) : see declaration of 'Excel::Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8411): error C2146: syntax error : missing ';' before identifier 'GetScripts'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8411): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8411): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8411): warning C4183: 'GetScripts': missing return type; assumed to be a member function returning 'int'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8422): error C2027: use of undefined type 'Excel::Office'
1>          c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7855) : see declaration of 'Excel::Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8422): error C2146: syntax error : missing ';' before identifier 'GetMailEnvelope'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8422): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8422): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8422): warning C4183: 'GetMailEnvelope': missing return type; assumed to be a member function returning 'int'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8455): error C2027: use of undefined type 'Excel::Office'
1>          c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7855) : see declaration of 'Excel::Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8455): error C2146: syntax error : missing ',' before identifier 'Element'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8667): error C2027: use of undefined type 'Excel::Office'
1>          c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7855) : see declaration of 'Excel::Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8667): error C2146: syntax error : missing ';' before identifier 'MailEnvelope'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8667): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8667): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8687): error C2027: use of undefined type 'Excel::Office'
1>          c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7855) : see declaration of 'Excel::Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8687): error C2146: syntax error : missing ';' before identifier 'Scripts'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8687): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8687): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8985): error C2027: use of undefined type 'Excel::Office'
1>          c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7855) : see declaration of 'Excel::Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8985): error C2146: syntax error : missing ';' before identifier 'GetScripts'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8985): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8985): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(8985): warning C4183: 'GetScripts': missing return type; assumed to be a member function returning 'int'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(9003): error C2027: use of undefined type 'Excel::Office'
1>          c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(7855) : see declaration of 'Excel::Office'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(9003): error C2146: syntax error : missing ';' before identifier 'GetMailEnvelope'
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(9003): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(9003): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jingfeng\documents\visual studio 2010\projects\testexcel\testexcel\debug\excel.tlh(9003): warning C4183: 'GetMailEnvelope': missing return type; assumed to be a member function returning 'int'
 
@Daniel Duffy

I get the same errors with an empty main() in excelimports.cpp.

I am not sure how my mso.dll got deleted/never got installed.
I will try the tips on that page and see how it goes.
 
I think the only way is to re-install Windows but I don't have a clean copy on a disc or anything.
I also don't have a copy of Office 2010 on me.
 
Are you sure it's not there but as a hidden file? Were you able to confirm manually?

Keep in mind that that are likely in a different path on your machine than the one mentioned in the code. It is version specific
 
Good news

It was after I ran sfc / scannow that I could locate the mso.dll and the vba files.

So it's working now!!!
THANKS!!!!!!!
 

Daniel Duffy

C++ author, trainer
Anyone using my driver on Excel 365?

I/we get errors


C:\Program Files\Microsoft Office\root\VFS\ProgramFilesCommonX86\Microsoft Shared\OFFICE16\MSO.DLL :128:4:error:stray '\374' in program
C:\Program Files\Microsoft Office\root\VFS\ProgramFilesCommonX86\Microsoft Shared\OFFICE16\MSO.DLL :128:4:error:stray '\377' in program
C:\Program Files\Microsoft Office\root\VFS\ProgramFilesCommonX86\Microsoft Shared\OFFICE16\MSO.DLL :128:4:error:stray '\307' in program
C:\Program Files\Microsoft Office\root\VFS\ProgramFilesCommonX86\Microsoft Shared\OFFICE16\MSO.DLL :128:4:error:stray '\205' in program
C:\Program Files\Microsoft Office\root\VFS\ProgramFilesCommonX86\Microsoft Shared\OFFICE16\MSO.DLL :128:4:error:stray '\274' in program
.......

Any ideas on how to solve?
 
Last edited:
I did copy / paste of your code posted on 8/26/14
KGkIjH3g7OsVSG5cP6wM9yycND63w-baVe3_TLIe-_XaI93UjgKivjhqJPqXlG9jrhMMkIL8qEAHSjGU9E3VzulJvO-nBaw7NVd4sKPub0QFPkJ9bkNbUvJPdR_OujWMjy8TYw-deJoFqcr6M0iJhjJFY0nehvkOdm3mIv3NNeR3Qgfe8hvtI2mcAXtWzbDVJ-eYUsu_2Zl4-H_qCNQv0xT9CoSJjHTdWBFTcGhwQbeiYq5lQLnjiHohbR0FE-2Uq1U2Vvs7CxP6Zl_V6oBYiG9iJZnQHJ772TyZN1Uopr_7jaql--RZ3lme_ZieYq40tAYn2TOLN7FDl33TuekiIJZDVidqYz7eCZGyprX67PEeDneFTnq4kV82lCeznsnmXhnp4zLJZUCW2e5JMLLOqjWsHPs8pYzbIdnaW1XothnLoGB3Dad5wvFyxiGfFcx5WHTEnLbuZG1Bli3Oo43UfHqLoXBYVba7h5hqoQbq_GTYg8VB0lRdwBRQVeE3dgKBXh4oB2jkcJ981g903N4Dy013Aoi7tb_uxKQvbVB7UTUK9pt1skkFR8yFGqInSqN4dWY0c6aHqh7SXOwjn8zCAI48pLUdYWiBHuzHfn-uRg9sQEZeztTDB7QpJ5g1Rf3pxvavKislOpZVrHMlApqB9GKfNxeZUB4YoS-2vt75Rl8_GMGhWlcfZs8Qe9AdetpiQ3XmvzSHxAii7esuB91EgU0=w719-h127-no


Excel Version 14.0 64bis
 
Last edited:
Top