Danish & German Goto SpecialCells Error

B

Bill

To All

When using the following code it works fine when in UK locale. But, when I
change the locale to Danish or German I get the error thereafter. Any ideas
or a way around this problem

rngFormula = rng.SpecialCells(Excel.XlCellType.xlCellTypeFormulas, 23)

ERROR:
System.Runtime.InteropServices.COMException (0x800A03EC): SpecialCells
method of Range class failed
at System.RuntimeType.ForwardCallToInvokeMember(String memberName,
BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
msgData)
at Microsoft.Office.Interop.Excel.Range.SpecialCells(XlCellType Type,
Object Value)

Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top