Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default MsgBox Function and Arguments


Hi,

Using the Buttons Arguments: I have a 2-Button OK and Cancel Messag
Box. At the moment, it makes know difference whether I click on OK o
Cancel, my copying process is still executed. How do I get the Cance
Button to terminate the copying action and, how are the Button Retur
Values used? Excel Help says that the Return Value Constants can b
used anywhere in your code but I don't understand how or when to us
them.

Thanks
Tin

--
Tin
-----------------------------------------------------------------------
Tinä's Profile: http://www.excelforum.com/member.php...fo&userid=1541
View this thread: http://www.excelforum.com/showthread.php?threadid=27770

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default MsgBox Function and Arguments

Sub Tester1()
ans = MsgBox(Prompt:="Go or Cancel", Buttons:=vbOKCancel)
If ans = vbCancel Then
Exit Sub
End If

MsgBox "You said OK"
' current code

End Sub

--
Regards,
Tom Ogilvy

"Tinä" wrote in message
...

Hi,

Using the Buttons Arguments: I have a 2-Button OK and Cancel Message
Box. At the moment, it makes know difference whether I click on OK or
Cancel, my copying process is still executed. How do I get the Cancel
Button to terminate the copying action and, how are the Button Return
Values used? Excel Help says that the Return Value Constants can be
used anywhere in your code but I don't understand how or when to use
them.

Thanks
Tinä


--
Tinä
------------------------------------------------------------------------
Tinä's Profile:

http://www.excelforum.com/member.php...o&userid=15410
View this thread: http://www.excelforum.com/showthread...hreadid=277703



Reply
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
Function Has Too Many Arguments tb Excel Worksheet Functions 4 May 19th 10 02:26 AM
Sum function changes arguments Dianeg Excel Worksheet Functions 1 January 13th 10 02:25 PM
function arguments Oregongal35 Excel Discussion (Misc queries) 7 November 14th 08 06:32 PM
MIN Function with arguments Freshman Excel Worksheet Functions 9 September 11th 08 02:50 AM
If Function with 3 arguments CIW Excel Worksheet Functions 5 December 5th 06 10:34 AM


All times are GMT +1. The time now is 01:44 AM.

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

About Us

"It's about Microsoft Excel"