Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I saw some code somewhere, but I can't find it anymore.
I need to insert a worksheet and then name this new sheet 'vacation'. The workbook may already have a sheet called 'sheet1' or 'sheet2'. thanks. Bill |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
worksheets.add
on error resume next activesheet.name = "vacation" if err.number < 0 then msgbox "couldn't rename" err.clear end if on error goto 0 Bill Starr wrote: I saw some code somewhere, but I can't find it anymore. I need to insert a worksheet and then name this new sheet 'vacation'. The workbook may already have a sheet called 'sheet1' or 'sheet2'. thanks. Bill -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
inserting a worksheet | Excel Discussion (Misc queries) | |||
Inserting a worksheet | Excel Worksheet Functions | |||
Inserting a new Worksheet | Excel Discussion (Misc queries) | |||
Inserting New Worksheet | Excel Discussion (Misc queries) | |||
Inserting row in 1 worksheet and updating a different row in another worksheet | Excel Discussion (Misc queries) |