ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Creating new sheet and renaming problem (https://www.excelbanter.com/excel-programming/443243-creating-new-sheet-renaming-problem.html)

Rohit

Creating new sheet and renaming problem
 
Hi All,

I am trying to copy content of one sheet into another new sheet and
then trying to rename that sheet but not able to do that.

Also is there any way to copy the content to a specific sheet, then in
that case i can probably rename a sheet and then will copy the
content.

Thank
Rohit

AB[_2_]

Creating new sheet and renaming problem
 
Are you doing that with a code or manually?
When you say 'not able to do that' - what exactly stops you from doing
that?

On Jun 22, 11:21*am, Rohit wrote:
Hi All,

I am trying to copy content of one sheet into another new sheet and
then trying to rename that sheet but not able to do that.

Also is there any way to copy the content to a specific sheet, then in
that case i can probably rename a sheet and then will copy the
content.

Thank
Rohit



Don Guillett Excel MVP

Creating new sheet and renaming problem
 
On Jun 22, 5:21*am, Rohit wrote:
Hi All,

I am trying to copy content of one sheet into another new sheet and
then trying to rename that sheet but not able to do that.

Also is there any way to copy the content to a specific sheet, then in
that case i can probably rename a sheet and then will copy the
content.

Thank
Rohit


sub copyandname()
sheets("shttocopy").copy after:=Sheets(Sheets.Count)
activesheet.name="Rohit"
end sub


All times are GMT +1. The time now is 05:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com