Filter löschen
Filter löschen

No method 'TypeText' with matching signature found for class

4 Ansichten (letzte 30 Tage)
Lakshmi Navya Sunkara
Lakshmi Navya Sunkara am 24 Mär. 2016
Kommentiert: Walter Roberson am 25 Apr. 2019
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.

Antworten (1)

Simone Lojeck
Simone Lojeck am 25 Apr. 2019
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.

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by