Long wbookcount = xl_Workbooks1.GetCount() PExcelRange = xl_Worksheet.GetRange(COleVariant(CString(str_ColRow1)), COleVariant(CString(str_ColRow2))) The target paste cell is a single cell, which should specify the upper-left corner for the pasted data. The copied cells is a range, usually containing 100-1000 cells. Select a rectangle that's the same size and shape, and then paste."."The information cannot be pasted because the Copy area and the paste area are not the same size and shape. ![]() The exception seems to happen at random, once every 50 or so copies. ![]() For years the code has been successful at moving the data in Windows 7, but in Windows 10 an exception is occasionally thrown even with already compiled ![]() I'm working on C++ code that moves from one excel workbook to another using XL::Range Cut and Paste.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |