Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there,
Can anyone help me with the code to add a worksheet in an excelsheet with a specific name? The name should be "data sheet" thx in advance Ruud |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, try this
Workbooks.Add ActiveSheet.Name = "data sheet" Filip "SotjeRuud" píše v diskusním příspěvku ... Hi there, Can anyone help me with the code to add a worksheet in an excelsheet with a specific name? The name should be "data sheet" thx in advance Ruud |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry,
once more and better: Sheets.Add ActiveSheet.Name = "LongProfile" In the first case I added workbook Cus :-) Filip "SotjeRuud" píše v diskusním příspěvku ... Hi there, Can anyone help me with the code to add a worksheet in an excelsheet with a specific name? The name should be "data sheet" thx in advance Ruud |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ruud,
following should get u on your way.. Sub AddDataSheet() Dim ws As Worksheet On Error Resume Next Set ws = Worksheets("data sheet") On Error GoTo 0 If ws Is Nothing Then Set ws = Worksheets.Add ws.Name = "data sheet" Else 'handle sheet exists here End If End Sub keepITcool < email : keepitcool chello nl (with @ and .) < homepage: http://members.chello.nl/keepitcool "SotjeRuud" wrote: Hi there, Can anyone help me with the code to add a worksheet in an excelsheet with a specific name? The name should be "data sheet" thx in advance Ruud |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hyperlink to a spcific worksheet | Excel Discussion (Misc queries) | |||
adding several worksheet cells onto a main worksheet | Excel Worksheet Functions | |||
How to create a 'name' which is not worksheet spcific | Excel Worksheet Functions | |||
Adding worksheet tab names to the first worksheet | Excel Discussion (Misc queries) | |||
list worksheet macros/VBA without adding worksheet | Excel Discussion (Misc queries) |