I just started learning about VBA, and got stuck writing a code that uses the form button to:
1) Creates a new sheet
2) After the indexed sheet
3) with a new name
Here is my code, which seems to be not running:
adding sheet.png![]()
Private Sub CommandButton1_Click() Sheets.Add(After:=Sheets("day_log")).Name = "Revised"
Bookmarks