The GUID is the ID of the signature provider. See the following:
SignatureSet.AddNonVisibleSignature Method
As for the error you are getting, you'll have to do some debugging. Did the ConnectToNewObject work? Did saving the file in WorkBook format work? If those failed, you won't be able to sign the file.