Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Having a Macro Prompt Me For Input
I have this macro: Sub temp() Range("B19").Select Range(Selection, Selection.End(xlDown)).Select Range(Selection, Selection.End(xlToRight)).Select ActiveWorkbook.Names.Add Name:="NameOfWorksheetHere", RefersToR1C1:= _ "='throttling 01102005'!R19C2:R115C6" End Sub Is it possible to have the macro prompt me to enter the name for "NameOfWorksheetHere" ? Thank you in advance. Was this post helpful to you? |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Having a Macro Prompt Me For Input
have a look in vba help for INPUT BOX
-- Don Guillett SalesAid Software "carl" wrote in message ... I have this macro: Sub temp() Range("B19").Select Range(Selection, Selection.End(xlDown)).Select Range(Selection, Selection.End(xlToRight)).Select ActiveWorkbook.Names.Add Name:="NameOfWorksheetHere", RefersToR1C1:= _ "='throttling 01102005'!R19C2:R115C6" End Sub Is it possible to have the macro prompt me to enter the name for "NameOfWorksheetHere" ? Thank you in advance. Was this post helpful to you? |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Having a Macro Prompt Me For Input
Thank you. I modd'ed my macro to this.
Now I would like this marco to run on each selected worksheet. I selcted my worksheets but the macro stalled on the last line. How can I have this macro repeat for each selected worksheet ? Thank you again. "Don Guillett" wrote: have a look in vba help for INPUT BOX -- Don Guillett SalesAid Software "carl" wrote in message ... I have this macro: Sub temp() Range("B19").Select Range(Selection, Selection.End(xlDown)).Select Range(Selection, Selection.End(xlToRight)).Select ActiveWorkbook.Names.Add Name:="NameOfWorksheetHere", RefersToR1C1:= _ "='throttling 01102005'!R19C2:R115C6" End Sub Is it possible to have the macro prompt me to enter the name for "NameOfWorksheetHere" ? Thank you in advance. Was this post helpful to you? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro to Prompt for File -- Neophite Needs HELP | Excel Discussion (Misc queries) | |||
Closing File Error | Excel Discussion (Misc queries) | |||
How to CANCEL file SAVE PROMPT when MACRO is running? | Excel Discussion (Misc queries) | |||
How do I insert a prompt into an Excel macro? | Excel Discussion (Misc queries) | |||
Prompt for file name in a macro | Excel Discussion (Misc queries) |