No method 'TypeText' with matching signature found for class

4 次查看(过去 30 天)
I am exposed to this error when tried to enter text in the created word document. No method 'TypeText' with matching signature found for class 'Interface.00020975_0000_0000_C000_000000000046'.
Kindly help out with this.

回答(1 个)

Simone Lojeck
Simone Lojeck 2019-4-25
I received the same error and found this posting searching for solutions. I'm adding a comment to help anyone who finds this in the same way I did.
As I've said I received the same error. My code would run w/o error for several iterations then fail on a specific case.
I did some step by step debugging and found that the text I was sending the selection.TypeText command on the iteration w/error was indeed different. It was expecting a text string (in my case {text}), however I was sending it an empty string ({[]}), which caused the error. I fixed this and the script no longer failed.
I'd recommend seeing exactly what input is being sent to the TypeText cmd. It's likely not a string or text like format.

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by