Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Naming multiple sheets in a workbook using cells within the wo

Continuing to guess:

Assume in sheet Event Data Form, the location in is in A1:A10 and the
corresponding name is in B1:B10. Assume 11 sheets in the workbook (one
named Event Data Form which will not be renamed).

Sub NameSheets()
Dim i as Long, cell as Range
i = 0
for each cell in worksheets("Event Data Form").Range("A1:A10")
if lcase(worksheets(i + 1).Name) = "event data form" then
i = i + 2
else
i = i + 1
end if
worksheets(i).Name = cell.Value & "_" & cell.offset(0,1).Value
Next
End Sub

--
Regards,
Tom Ogilvy

"amyc" wrote in message
...
thanks.

still getting the error. Event Data Form is the raw data set - includes
name of event and location (region and county). The naming convention I

am
trying to pull in refers to the location and name of these events. I will
reboot and retry. thanks for your help.



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
updating cells in a workbook based on a criteria in another workbo CNN Excel Discussion (Misc queries) 1 June 12th 09 06:46 AM
Naming multiple sheets Amanda Excel Discussion (Misc queries) 2 April 24th 07 04:46 PM
Renaming sheets with the same name after copying into a new workbo cdb Excel Discussion (Misc queries) 0 March 14th 06 04:25 PM
How can I merge multiple sheets from different Excel files workbo. jones021 Excel Worksheet Functions 0 April 20th 05 08:48 PM
Only allow certain users access to specific sheets within a workbo Tom Ogilvy Excel Programming 2 August 24th 04 12:43 PM


All times are GMT +1. The time now is 05:28 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"