VBA clearContents function return value changed?

BARROSO TRISTAN, JAVIER RICARDO 20 Puntos de reputación
2024-06-14T08:04:36.67+00:00

Hello,

Until today we had a script which would check if clearContents were ok:

$r = $worksheet.UsedRange.clearContents()
if (-not $r) {
    throw "No se ha podido limpiar las celdas"
}

Today it started to fail and throw were being executed

I finally removed the check and the throw. I am not sure why this behaviour was changed

Thank you

Preguntas y respuestas (Q&A) de Microsoft
Preguntas y respuestas (Q&A) de Microsoft
Use esta etiqueta para compartir sugerencias, solicitudes de características y errores con el equipo de Microsoft Q&A. El equipo de Microsoft Q&A evaluará sus comentarios periódicamente y proporcionará actualizaciones a lo largo del proceso.
261 preguntas
0 comentarios No hay comentarios
{count} votos