Click here to Skip to main content
14,869,895 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am generating a excel sheet using data retrieved from database.All code working properly.But I have a problem in tab name of that excel sheet.It showing as Sheet.I want to change that excel sheet name.Can anybody tell me how to achieve the same.
Thanks in advance.

1 solution

Excel._Worksheet oSheet;
oSheet.Name = "name";

Be aware that "name" can only be 31(32?) chars long!
Dalek Dave 25-Aug-10 3:19am
Spot on!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900