Dear Excel Experts,
I've been trying the whole day and kinda give up on this. Am trying to do this automatically. Copy header from first worksheet to all other worksheets. But come to no avail. Below are my series of coding I've tried:-
I just don't know what is actually wrong with it. Please help. Really need this for 147 worksheets.
I've been trying the whole day and kinda give up on this. Am trying to do this automatically. Copy header from first worksheet to all other worksheets. But come to no avail. Below are my series of coding I've tried:-
Code:
Do While i <= Worksheets.Count
Sheets(i).Rows(1).EntireRow.Copy
Sheets(i + 1).Range("A1").Paste
i = i + 1
Sheets(i).Rows(1).Paste
Loop
Code:
For i = 1 To Worksheets.Count
Sheets(1).Rows(1).EntireRow.Copy
Sheets(i+1).Range("A1").Select
Selection.Paste
Next
Code:
For Each Worksheet In ActiveWorkbook.Worksheets
Sheets(1).Rows("1:1").Copy
Sheets(i).Rows("1:1").Paste
i=i+1
Next
I just don't know what is actually wrong with it. Please help. Really need this for 147 worksheets.