LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 328
Default Input Box Help

Thanks alot, that worked fine.

"FSt1" wrote:

hi
you could add something like this...

dim nsn as string
nsn = inputbox("Enter a sheet name.")
sheets("blank sheet").name = nsn

regards
FSt1

"Lisa" wrote:

I recorded the following macro to copy and insert a new daily report sheet
and then it protects the sheet so my guys dont change my formulas.

What I need now is to add code to the end of this macro to bring up an input
box to change the tab name to a user defined date. How do I do this?

Thanks in advance,
Lisa

Sub NewSheet()
'
' NewSheet Macro
' New Formatted Sheet
'
' Keyboard Shortcut: Ctrl+n
'
Sheets("Blank Sheet").Select
Sheets("Blank Sheet").Copy After:=Worksheets(Worksheets.Count)
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
End Sub

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I have an input form to add a random no. to each input entry? saziz Excel Discussion (Misc queries) 2 January 25th 06 11:46 PM
***Two Input Data Tables*** rbekka Excel Discussion (Misc queries) 1 October 21st 05 02:05 PM
input box Monty Excel Discussion (Misc queries) 2 October 7th 05 08:33 AM
Input Form vba help mdalzell Excel Discussion (Misc queries) 0 April 8th 05 03:57 PM
can you input time (hh:mm:ss) without having to input the colon i. Lexicon Excel Discussion (Misc queries) 4 January 11th 05 02:09 PM


All times are GMT +1. The time now is 02:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"