Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Tom gave me this code to create worksheets with the date on them.
worksheets.Add After:=Worksheets(worksheets.count) worksheets(worksheets.count).Name = Format(Date,"ddmmyyyy") What i need to do is on each of these Worksheets i need to put "Auditor Name" in Range("A2"). I have tried a few things but only get the text on the last sheet. Please help -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this
Dim wsNewWorksheet As Worksheet Set wsNewWorksheet = Worksheets.Add After:=Worksheets(Worksheets.Count) wsNewWorksheet.Name = Format(Date,"ddmmyyy") wsNewWorksheet.Range("A2")="Auditor Name" *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for the help Edward but i get an error on this :
Set wsNewWorksheet = Worksheets.Ad After:=Worksheets(Worksheets.Count) Any ideas -- Message posted from http://www.ExcelForum.com |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry forgot the parenthesis.
I cut this from my code so sure it should work. Set wsNewWorksheet = Worksheets.Add(After:=Worksheets(Worksheets.Count) ) *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
automatically appending newly added data on worksheet to a master list worksheet | Links and Linking in Excel | |||
plot graph from multiple worksheet as embedded chart object on every worksheet | Excel Discussion (Misc queries) | |||
plot graph from multiple worksheet as embedded chart object on every worksheet | New Users to Excel | |||
Upload multiple text files into 1 excel worksheet + put the filename as the first column in the worksheet | Excel Worksheet Functions | |||
Attaching a JET database to an Excel Worksheet OR storing large binary data in a worksheet | Excel Programming |