take user clik as an input

  • Thread starter Thread starter Yossi evenzur
  • Start date Start date
Y

Yossi evenzur

Hi
I'd like to run a macro in a new sheet is inserted and the user is asked to
name a new sheet, how can it be done?
 
Sub askfornameofsheettoinsert()
myname = InputBox("Enter name of new sheet to insert")
Sheets.Add
ActiveSheet.Name = myname
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top