Hi, I'm struggling to work this out despite me thinking it really cannot be hard (still very much a newbie).
I want to select a cell in an existing worksheet then run a macro that inserts a new sheet (at the end) and names it the contents of the active cell. An added bonus would be to Paste the same cell data into the new worksheet at A1. I've only got this far and clearly the rename doesn't work
Dim newsheet
Set newsheet = Sheets.Add(After:=Sheets(Worksheets.Count), Count:=1, Type:=xlWorksheet)
newsheet.Name = ActiveCell.Value
Edit***** a really cheeky extra question - Is it possible to turn the selected cell into a hyperlink to the new sheet of the same name ? so if I select a cell with contents of "Dave", a new sheet called Dave will be made and the cell would become a link to it ?
Many thanks,
I want to select a cell in an existing worksheet then run a macro that inserts a new sheet (at the end) and names it the contents of the active cell. An added bonus would be to Paste the same cell data into the new worksheet at A1. I've only got this far and clearly the rename doesn't work
Dim newsheet
Set newsheet = Sheets.Add(After:=Sheets(Worksheets.Count), Count:=1, Type:=xlWorksheet)
newsheet.Name = ActiveCell.Value
Edit***** a really cheeky extra question - Is it possible to turn the selected cell into a hyperlink to the new sheet of the same name ? so if I select a cell with contents of "Dave", a new sheet called Dave will be made and the cell would become a link to it ?
Many thanks,
Last edited: