Hi, i have automated excell using VC6++ and my program works. now i need to find the address of the last sell in Column A in excell sheet. please if anyone can help
The issue is with your second parameter to the add method. The add method expects a variant with an IDispatch * to the sheet you want to insert the new sheet after, not in the numerical index of the sheet in the worksheets collection.