Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub Button1_Click()
i = 1 For Each sht In Worksheets If sht.Name < "Sheet4" Then For Each cell In sht.Range("A1:A10") ActiveSheet.Cells(1, i) = cell i = i + 1 Next End If Next End Sub this considers that you have data in 3 sheets and you have a total of sheets only. all data is put in sheet4. - Manges -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Array Question | Excel Worksheet Functions | |||
Array question | Excel Programming | |||
Array question | Excel Programming | |||
Array question | Excel Programming | |||
Is this an array question? | Excel Programming |