Creating new sheet and renaming problem

R

Rohit

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
 
A

AB

Are you doing that with a code or manually?
When you say 'not able to do that' - what exactly stops you from doing
that?
 
D

Don Guillett Excel MVP

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top