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 sheet collection

Sub AddNames()
dim sh as Worksheet
for each sh in ActiveWorkbook.worksheets
sh.Cells(1,1).Value = sh.name
Next
End Sub

--
Regards,
Tom Ogilvy


"john" wrote in message
...
I am sure this is quite easy. I just can't find an
example.

I need a macro to:

For each sheet in a workbook need to
set sheet.cells(1,1) to sheet.name

I need to do this for about 50 .xls files (All office 2000
format). So I will need to have the macro in my
global.xls file

Thanks for any help, John




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
setup help/excel wk/sheet to record museum library collection alaskakiwi New Users to Excel 1 January 26th 09 09:14 AM
help with data collection! brandon roland[_2_] New Users to Excel 1 August 8th 07 10:09 PM
Does anybody have a CD collection template PeterM Excel Discussion (Misc queries) 2 November 27th 04 05:46 PM
Is a Collection the best option? Bradley Dawson Excel Programming 1 August 31st 03 08:14 PM
Sum textboxes in a collection Mark[_18_] Excel Programming 1 August 28th 03 04:17 AM


All times are GMT +1. The time now is 06:26 AM.

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

About Us

"It's about Microsoft Excel"