Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is a rough one...
Mark Sub test() Dim row As Long Dim mysheetname As String Dim myworksheet As String myworksheet = ActiveSheet.Name For row = 1 To 4 mysheetname = Cells(row, 1).Text Sheets.Add ActiveSheet.Name = mysheetname Sheets(myworksheet).Select Next End Sub "Mike C" wrote in message ... Is there any chance someone would know some code that allows me to create new worksheets with the names of a selection of cells. So, for example, if I selected the following cells: Rice Macaroni Chicken Hash Browns I would like the macro to create four sheets by those names. Any suggestions would be appreciated. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
using the Excel generic worksheet names instead of user-given names in code | Excel Discussion (Misc queries) | |||
Use Cell Values to Create Tabs with specific names | Excel Programming | |||
How dynamically create routing slip based on names in specific cel | Excel Discussion (Misc queries) | |||
Count unique values and create list based on these values | Excel Worksheet Functions | |||
Create seperate xls files with names based on cell text | Excel Programming |