Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
What does "resp" mean?
In the section of a macro below, what does "resp" mean?
resp = MsgBox("Do you want to run the macro?", vbYesNo, Confirm) If resp = vbNo Then MsgBox ("Macro stopped.") |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
What does "resp" mean?
"Resp" is just a variable which holds the value of the YES/NO button(s) when
they are pressed. (I suspect "resp" is used as a shorthand for response) It could equally well have been called "X" or "Y" or "answer". VbNo is the (special) VBA variable which holds the value associated with the NO button: vbYES is the equivlent for the YES button. HTH "Elise148" wrote: In the section of a macro below, what does "resp" mean? resp = MsgBox("Do you want to run the macro?", vbYesNo, Confirm) If resp = vbNo Then MsgBox ("Macro stopped.") |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
What does "resp" mean?
Thanks. I like VBA, and I want to understand as much of it as I can.
"Toppers" wrote: "Resp" is just a variable which holds the value of the YES/NO button(s) when they are pressed. (I suspect "resp" is used as a shorthand for response) It could equally well have been called "X" or "Y" or "answer". VbNo is the (special) VBA variable which holds the value associated with the NO button: vbYES is the equivlent for the YES button. HTH "Elise148" wrote: In the section of a macro below, what does "resp" mean? resp = MsgBox("Do you want to run the macro?", vbYesNo, Confirm) If resp = vbNo Then MsgBox ("Macro stopped.") |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
create links to check boxes marked "good" fair"and "bad" | Excel Worksheet Functions | |||
Complex if test program possible? If "value" "value", paste "value" in another cell? | Excel Discussion (Misc queries) | |||
Insert "-" in text "1234567890" to have a output like this"123-456-7890" | Excel Discussion (Misc queries) |