ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Creating & Naming a New Worksheet (https://www.excelbanter.com/excel-programming/318838-creating-naming-new-worksheet.html)

Teresa

Creating & Naming a New Worksheet
 
All I want to do is create and name a new Worksheet,
The below code doesn't quite work, your help would me much appreciated:

sub ad()

worksheets.add
Set worksheets.Name = "Changes"

End Sub

Tom Ogilvy

Creating & Naming a New Worksheet
 
sub ad()

worksheets.add
Activesheet.Name = "Changes"

End Sub

or

Sub Addsheet()
worksheets.Add.Name = "Changes"
End sub

--
Regards,
Tom Ogilvy


"teresa" wrote in message
...
All I want to do is create and name a new Worksheet,
The below code doesn't quite work, your help would me much appreciated:

sub ad()

worksheets.add
Set worksheets.Name = "Changes"

End Sub





All times are GMT +1. The time now is 11:12 PM.

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