Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Add sheets with name as in cells in a specific sheet

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Add sheets with name as in cells in a specific sheet

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help to filter data from multipule sheets to specific sheet Khawajaanwar New Users to Excel 2 January 8th 10 03:58 PM
Copy specific data form sheets into master sheet Eva Excel Worksheet Functions 6 November 20th 09 06:06 PM
referencing specific data accross many sheets in a final sheet cha Chris Cornell Excel Discussion (Misc queries) 1 November 1st 08 02:44 AM
Copy cells to specific sheets Double R Excel Worksheet Functions 3 July 31st 07 12:07 AM
Automatic deletion of specific cells from multiple sheets Jman Excel Worksheet Functions 4 June 12th 07 03:44 PM


All times are GMT +1. The time now is 01:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"