#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Automate sheets list

Hi to all,

I have been looking on how to get this through. I have a workbook
with at least 3 sheets, that can increase to 20, 30, etc... or reduced
to 3. the first 3 sheets are always in the workbook, as standard.

The thing is that in the second sheet i want to list all the sheets
present in the workbook, as a list, and next to each one I want the
value in cell H12. Ie.:

Sheet name - total (cell H11 of each sheet)
Assy1 3.4341
Mech1 11.24508
.....
mech5 3.7654
Patt 12.6667

Can any of you give some help/clue how to get this done?
Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Automate sheets list

Sub CreateListOfSheetsOnSecondSheet()
Dim WS As Worksheet
For i = 1 To Worksheets.Count
With Worksheets(2)
Set WS = Worksheets(i)
.Cells(i, 1).Value = WS.Name
.Cells(i, 2).Value = WS.Range("H11")
End With
Next i
End Sub


Gord Dibben MS Excel MVP

On Mon, 26 Apr 2010 13:06:37 -0700 (PDT), DDavid
wrote:

Hi to all,

I have been looking on how to get this through. I have a workbook
with at least 3 sheets, that can increase to 20, 30, etc... or reduced
to 3. the first 3 sheets are always in the workbook, as standard.

The thing is that in the second sheet i want to list all the sheets
present in the workbook, as a list, and next to each one I want the
value in cell H12. Ie.:

Sheet name - total (cell H11 of each sheet)
Assy1 3.4341
Mech1 11.24508
....
mech5 3.7654
Patt 12.6667

Can any of you give some help/clue how to get this done?
Thanks in advance.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Automate sheets list

Hi Gord,

Excellent, Thanks, worked like a charm! I will definitely have to
become an Excel mvp, Many thanks again

ADC

On Apr 26, 4:29*pm, Gord Dibben <gorddibbATshawDOTca wrote:
Sub CreateListOfSheetsOnSecondSheet()
* * Dim WS As Worksheet
* * For i = 1 To Worksheets.Count
* * * * With Worksheets(2)
* * * * * * Set WS = Worksheets(i)
* * * * * * .Cells(i, 1).Value = WS.Name
* * * * * * .Cells(i, 2).Value = WS.Range("H11")
* * * * End With
* * Next i
End Sub

Gord Dibben *MS Excel MVP

On Mon, 26 Apr 2010 13:06:37 -0700 (PDT), DDavid
wrote:



Hi to all,


I have been looking on how to get this through. *I have a workbook
with at least 3 sheets, that can increase to 20, 30, etc... or reduced
to 3. the first 3 sheets are always in the workbook, as standard.





The thing is that in the second sheet i want to list all the sheets
present in the workbook, as a list, and next to each one I want the
value in cell H12. Ie.:


Sheet name * *- * total (cell H11 of each sheet)
Assy1 * * * * * * *3.4341
Mech1 * * * * * * 11.24508
....
mech5 * * * * * * *3.7654
Patt * * * * * * * * *12.6667


Can any of you give some help/clue how to get this done?
Thanks in advance.


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
automate adding sheets Brian Excel Discussion (Misc queries) 6 June 20th 08 12:57 AM
List Sheets excluding sheets named ***-A Dolphinv4 Excel Discussion (Misc queries) 1 December 15th 07 09:29 AM
automate formating a mailing list Tim R Excel Discussion (Misc queries) 0 September 25th 07 06:48 PM
automate creation of sheets in excel Daniel Excel Worksheet Functions 1 June 23rd 05 10:06 PM
I would like to know how to automate graph using drop down list Lokesh Charts and Charting in Excel 2 June 17th 05 05:01 PM


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