Sub thshets()
For i = 1 To 25
Sheets(i).Cells(1, 1).Value = "Something"
Next i
End Sub
> Hi all,
>
[quoted text clipped - 4 lines]
> data in to each sheets can any one provide me with an solution for
> this problem.
Well, without mroe information than that, here's a basic place to
start:
Private Sub DoSomething()
Dim w As Worksheet
For Each w In ActiveWorkbook.Sheets
'this next line stops the code from
'running after sheet 25
If w.Index > 25 Then Exit Sub
'code here to write something to
'a sheet as you're passing through.
'for example:
Range("A1").Value = w.Name
Next
End Sub
Hope that helps!
Cory
> Hi all,
>
[quoted text clipped - 4 lines]
> data in to each sheets can any one provide me with an solution for
> this problem.
Raj - 27 Sep 2007 13:28 GMT
On Sep 27, 5:17 pm, "crfergu...@gmail.com" <crfergu...@gmail.com>
wrote:
> Well, without mroe information than that, here's a basic place to
> start:
[quoted text clipped - 27 lines]
>
> - Show quoted text -
thanks a lot for ur valuable solution
crferguson@gmail.com - 27 Sep 2007 13:46 GMT
On Sep 27, 7:17 am, "crfergu...@gmail.com" <crfergu...@gmail.com>
wrote:
> Well, without mroe information than that, here's a basic place to
> start:
[quoted text clipped - 27 lines]
>
> - Show quoted text -
I'm glad it helped. Have a great week.