View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
OliverS OliverS is offline
external usenet poster
 
Posts: 2
Default Worksheets Add fails with SP1 of Excel 2003

Adding a new worksheet using the Worksheets Add method throws an exception
with error code 0x80010105 (RPC_E_SERVERFAULT - "The server threw an
exception.").
The code (in C++) looks like this:

Worksheets sheets;
sheets = book.GetWorksheets();
sheet = sheets.Add(covOptional, covOptional, covOptional, covOptional);

This code works without problems with Excel 2000 and 2002.
It also worked with Office 2003 without SP1. After installing SP1 however
the program fails the way described above.

I am running Windows XP SP1 + Office Professional Edition 2003.
Thanks