Brian,
Actullly I want the Names should be starting from C4(instead of A1) and numbers (1 2 3 .......) should come up from C5 please. This is to check how many names are there.
Ok it was a quick post without looking at your attachment to show the principle, to place it as per attachment.
Code:
Sub sheetnames()
Dim i As Long
For i = 1 To Sheets.Count
Sheets("names").Cells(i + 3, "C").Value = Sheets(i).Name
Sheets("names").Cells(i + 3, "B").Value = i
Next i
End Sub
Brian,
Working perfectly. What I wanted to do is put the value of E34 in each worksheet into names worksheet in column D in appropriate worksheet name. I have manually done with past link, but I want to do with macro if possible. See updated attached file.
click on Master tab
hold shift key whilst clicking on Tom
ie first and last sheets after names
this groups the sheets and what you do on one is done on all
to ungroup right click on Master and select ungroup from local menu.