Effacer les filtres
Effacer les filtres

No method 'TypeText' with matching signature found for class

12 vues (au cours des 30 derniers jours)
Lakshmi Navya Sunkara
Lakshmi Navya Sunkara le 24 Mar 2016
Commenté : Walter Roberson le 25 Avr 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.

Réponses (1)

Simone Lojeck
Simone Lojeck le 25 Avr 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.
  1 commentaire
Walter Roberson
Walter Roberson le 25 Avr 2019
I wonder if it would have worked to have sent {''} instead of {[]} ?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Characters and Strings dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by