How to change the sheet name in xls file.If I MANUALLY CHANGING THE SHEETNAME, ITS NOT CHANGING .How to change it.
I have tried, Its not working
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"
can you follow the below thread.
@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
It seems your .xls file is corrupted. I have created the same .xls file and it working fine at my end.
Input:
Output:
Regards
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.