A
adrian
hello!
i am using visual studio 2000 and am trying to insert a formúla into
an excel cell. the code goes like this:
with excel
.workbooks.open (datei(i))
.activesheet.name ="statistik 2004"
.activesheet.range("b7").select()
.selection.insert()
.range("b7").formular1c1 = "=rc[-1]*1"
end with
excel is defined as excel.application
i have problems with the formular1c1 command. i think the syntax is
ok, but when i am executing the application visual basic shows me a
messagebox with
"An unhandled exeption of type
'system.runtime.interopservices.comexception' occured in mscorlib.dll.
Additional information: Exception from HRESULT: 0x800A03EC"
can anyone help me?
adrian
--------------------------------------------------------------------------------
i am using visual studio 2000 and am trying to insert a formúla into
an excel cell. the code goes like this:
with excel
.workbooks.open (datei(i))
.activesheet.name ="statistik 2004"
.activesheet.range("b7").select()
.selection.insert()
.range("b7").formular1c1 = "=rc[-1]*1"
end with
excel is defined as excel.application
i have problems with the formular1c1 command. i think the syntax is
ok, but when i am executing the application visual basic shows me a
messagebox with
"An unhandled exeption of type
'system.runtime.interopservices.comexception' occured in mscorlib.dll.
Additional information: Exception from HRESULT: 0x800A03EC"
can anyone help me?
adrian
--------------------------------------------------------------------------------