Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I want to add sheets to the right and name them after cell value starting from Cell A3 in sheet "sammanställning" and ending with creation of sheets when value in cell Ax is empty. Is this hard to do? Sverre |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub Addsheets()
Dim rng as Range, cell as Range with worksheets("sammanställning") set rng = .Range("A3",.Range("A3").End(xldown)) End with for each cell in rng worksheets.Add After:=Worksheets(worksheets.count) activesheet.name = cell.value Next end sub This assumes there will aways be at least values in A3 and A4. Otherwise, you will have to add code that handles just one or no values. -- Regards, Tom Ogilvy "sverre" wrote: Hi I want to add sheets to the right and name them after cell value starting from Cell A3 in sheet "sammanställning" and ending with creation of sheets when value in cell Ax is empty. Is this hard to do? Sverre |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need help to filter data from multipule sheets to specific sheet | New Users to Excel | |||
Copy specific data form sheets into master sheet | Excel Worksheet Functions | |||
referencing specific data accross many sheets in a final sheet cha | Excel Discussion (Misc queries) | |||
Copy cells to specific sheets | Excel Worksheet Functions | |||
Automatic deletion of specific cells from multiple sheets | Excel Worksheet Functions |