Doflamingo
Board Regular
- Joined
- Apr 16, 2019
- Messages
- 238
Hi all, I have a question
Here is the code to add a new sheet having the name of a textbox.value from a userform
I would like to know why when the code is activated, the macro creates 2 sheets, the 1st rename with the textbox value and an other one called ''sheet1"
I just would like a new sheet created with my textbox value
Any idea ?
Here is the code to add a new sheet having the name of a textbox.value from a userform
Code:
[FONT=Arial][COLOR=#333333][FONT=Montserrat][COLOR=#000000]Sheets[/COLOR][COLOR=#000000].[/COLOR][COLOR=#000000]Add [/COLOR][COLOR=#000000]After[/COLOR][COLOR=#000000]:[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#000000]Sheets[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000]Sheets[/COLOR][COLOR=#000000].[/COLOR][COLOR=#000000]Count[/COLOR][COLOR=#000000])[/COLOR][/FONT][/COLOR][/FONT]
[FONT=Arial][COLOR=#333333][FONT=Montserrat][COLOR=#000000][/COLOR][/FONT][/COLOR][COLOR=#333333][FONT=Montserrat][COLOR=#000000]Sheets.Add.Name = textbox.value[/COLOR][/FONT][/COLOR][/FONT]
I would like to know why when the code is activated, the macro creates 2 sheets, the 1st rename with the textbox value and an other one called ''sheet1"
I just would like a new sheet created with my textbox value
Any idea ?