Hi there,
I'm trying to rename a worksheet but i have some errors.
Could you help me please ?
'Here in VBA
'Sheets(worksheetName).Select
'Sheets(worksheetName).Name = newName
'ws.Name = newName
'What i put on BluePrism
'First Try
Dim ws As Object
ws = GetWorkSheet(handle, workbookName, worksheetName)
ws.Select
ws.set(handle, workbookName, newName)
'Error : Internal : Could not execute code stage because exception thrown by code stage: Public member 'set' on type 'Worksheet' not found.
'Second try - Should be worked ? It talks about wrong worksheet name but i have checked
Dim ws As Object
ws = GetWorkSheet(handle, workbookName, worksheetName)
ws.Select
ws.Name = newName
'Internal : Could not execute code stage because exception thrown by code stage: Vous avez tapé un nom de feuille ou de graphique non valide. Vérifiez les points suivants :
ۢ Le nom ne d̩passe pas 31 caract̬res.
ۢ Le nom ne contient aucun des caract̬res suivants : \ / ? * [ ou ]
€¢ Le champ du nom n'est pas vide.
Thanks,
Regards,
KG