LOT change name

Dear all, I am having problems to change the name of the list of tables in the table of contents. I am writing in spanish and I want to change the name Índice de cuadros (list of tables) to Índice de tablas. I am writing in the preamble the following sentence

\renewcommand {\listtablename}{Índice de tablas} 

and nothing happens.

I hope you can help

Thank you

Try using this in the

Try using this in the document preamble:

\AtBeginDocument{\renewcommand {\listtablename}{Índice de tablas}}

Thank you. It worked

Thank you. It worked perfect!!!