필터 지우기
필터 지우기

error message: "the rpc server is unavailable" - what causes it / how to get rid of it?

조회 수: 13 (최근 30일)
Rhys
Rhys 2014년 2월 25일
댓글: Aiden Coutin 2022년 2월 24일
Hi, I'm getting the error "the RPC server is unavailable" when my MatLab code tries to run a macro within an Excel file, i.e. with the command:
ExcelApp.Run('makeChart')
The code uses com connections to an Excel file in order to write data and run several chart making macros.
I'm a bit confused because the code runs fine on several other PC's and a Google search for the error doesn't seem to turn up anything useful...
Any thoughts on what could be causing this error would be much appreciated.

답변 (1개)

Iain
Iain 2014년 2월 25일
편집: Iain 2014년 2월 25일
I've seen that error when the excel application matlab was interfacing with has closed but it hasn't been replicated in matlab's activex interface object.
  댓글 수: 1
Aiden Coutin
Aiden Coutin 2022년 2월 24일
I had this issue today. I fixed it by opening the Excel file outside of Matlab, making a change and saving it, then trying again.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by