How to change the sheet name in xls file

How to change the sheet name in xls file.If I MANUALLY CHANGING THE SHEETNAME, ITS NOT CHANGING .How to change it.

Hi @anjani_priya

Try this

Regards,

1 Like

I have tried, Its not working

@anjani_priya

Can you please share your excel file if its not confidential

Cheers!!

26.04.2024.xls (6 Bytes)
this is the file,sheet name not changing

I’ve had this issue too! If right-clicking to rename doesn’t work, make sure your file isn’t in protected mode. Restarting Excel often helps, or try copying the content to a new sheet if all else fails.

you can change the Name by using the VB Script code

ThisWorkbook.Worksheets("Sheet1").Name = "NewSheetName"

Hi @anjani_priya

can you follow the below thread.

1 Like

@Baskar_Gurumoorthy @anjani_priya

need to use the vs script for change the name

ThisWorkbook.Worksheets("Sheet1").Name = "NewSheetName"

@anjani_priya Did you tried this ?

Should I use this in assign?

I have tried its not working

Hi @anjani_priya

It seems your .xls file is corrupted. I have created the same .xls file and it working fine at my end.

Input:
image

Output:
image

Regards

1 Like

for my solution, you need to use vb script

I hope below activity help you for solution

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.