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

7 visualizaciones (últimos 30 días)
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.

Respuestas (1)

Iain
Iain el 25 de Feb. de 2014
Editada: Iain el 25 de Feb. de 2014
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 comentario
Aiden Coutin
Aiden Coutin el 24 de Feb. de 2022
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Data Import and Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by