ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   take user clik as an input (https://www.excelbanter.com/excel-programming/404698-take-user-clik-input.html)

Yossi evenzur[_2_]

take user clik as an input
 
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?

Don Guillett

take user clik as an input
 
Sub askfornameofsheettoinsert()
myname = InputBox("Enter name of new sheet to insert")
Sheets.Add
ActiveSheet.Name = myname
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Yossi evenzur" wrote in message
...
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?




All times are GMT +1. The time now is 10:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com