Linda
I have assumed that you are starting with only one sheet and you want the macro to add sheets and then copy/paste the months.
Check whether the following macro does what you need. If not, post again.
Sub CopyMonths()
Dim Mnth As Range, x As Integer
Set Mnth = Sheets(1).Range("A1")
x = 1
Do Until Mnth = ""
Sheets.Add After:=Sheets(x)
x = x + 1
Mnth.Copy Destination:=Sheets(x).Range("A1")
Set Mnth = Mnth.Offset(1, 0)
Loop
End Sub
Ada
I'm sorry, I only used the months as examples of text.
The text can vary, so basically I need to copy whats in the cells (from A1 down to end).
The other sheets are already there so there is no need to add sheets.
Thanxs,
Linda
Linda
Try this :-
Sub CopyWhatever()
Dim Mnth As Range, x As Integer
Set Mnth = Sheets(1).Range("A1")
x = 2
Do Until Mnth = ""
Mnth.Copy Destination:=Sheets(x).Range("A1")
x = x + 1
Set Mnth = Mnth.Offset(1, 0)
Loop
End Sub
Ada
Thanxs Ada,
It works a treat.
Sorry I thought that Mnth = Month but seems to work on anything.
Thanxs once again,
Linda