I think I know what you are looking for, I have a macro below, to create the sheet.
It is necessary first to create a blank sheet which I have called "0000" and this will be the last worksheet and used as a basis for creating the new sheets with whatever formatting, data etc is needed.
The macro will check to see if the sheet name is already present and select that sheet and quit if it is, or create a new sheet if it is not.
Sub create_page()
Dim CN As String, response, a as integer, wcon As Integer, g As Integer
Application.ScreenUpdating = False
Let CN = ?? ‘origin of country name
Let wcon = Worksheets.Count
Let a = 3 ‘sheet before which new data sheet to be placed
For g = 3 To wcon
If Sheets(g).Name = CN Then
response = MsgBox(prompt:=”This country already has a data sheet”, Buttons:=vbOKOnly)
sheets(g).select
End
End If
Next g
Sheets("0000").Visible = True
Sheets("0000").Select
Sheets("0000").Copy Before:=Sheets(a)
Sheets("0000 (2)").Select
Sheets("0000 (2)").Name = CN
Sheets("0000").Visible = xlVeryHidden
Sheets(CN).Select ‘Place any code here relating to data entry
Application.ScreenUpdating = True
End Sub
Hope it is of some use
Regards
Jeff
Bookmarks