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 Replacement w/ an UserForm


Bob,
Thanks.
Formatting is easier in a Form. Also, the 'Yes-No' buttons are no
applicable to the options that I am giving the user.
I would appreciate if you or someone could give me a few lines o
code.
Chuckles12

--
Chuckles12
-----------------------------------------------------------------------
Chuckles123's Profile: http://www.excelforum.com/member.php...fo&userid=1494
View this thread: http://www.excelforum.com/showthread.php?threadid=26787

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default MsgBox Replacement w/ an UserForm

Hi,
I don't have code, but just a few details about MsgBox (see online help):
You have other buttons available in msgbox:
-vbOKOnly 0 Display OK button only.
-vbOKCancel 1 Display OK and Cancel buttons.
-vbAbortRetryIgnore 2 Display Abort, Retry, and Ignore buttons.
-vbYesNoCancel 3 Display Yes, No, and Cancel buttons.
-vbYesNo 4 Display Yes and No buttons.
-vbRetryCancel
So if want to display Abort,Retry,Ignore buttons with a Warning icon:
MsgBox "did Not Work!", vbAbortRetryIgnore + vbCritical, "TEST"
as you can see , you just have to add the vbMsgBoxStyle in the Buttons
parameter as in : vbAbortRetryIgnore + vbCritical

Would that be enough flexibility in your case?
But maybe you already know about that and it doesn't fit your needs.

Regards,
Sebastien
"Chuckles123" wrote:


Bob,
Thanks.
Formatting is easier in a Form. Also, the 'Yes-No' buttons are not
applicable to the options that I am giving the user.
I would appreciate if you or someone could give me a few lines of
code.
Chuckles123


--
Chuckles123
------------------------------------------------------------------------
Chuckles123's Profile: http://www.excelforum.com/member.php...o&userid=14948
View this thread: http://www.excelforum.com/showthread...hreadid=267872


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default MsgBox Replacement w/ an UserForm

In a general module:

Dim ans as String
Sub showform
userform1.show
if and = "House" then

else


end if
End Sub


in the userform1 module

Private Sub commandbutton1_click()
ans = "House"
Unload Me
End Sub

Private Sub commandbutton2_click()
ans = "Cabin"
Unload Me
end sub

--
Regards,
Tom Ogilvy


"Chuckles123" wrote in message
...

Bob,
Thanks.
Formatting is easier in a Form. Also, the 'Yes-No' buttons are not
applicable to the options that I am giving the user.
I would appreciate if you or someone could give me a few lines of
code.
Chuckles123


--
Chuckles123
------------------------------------------------------------------------
Chuckles123's Profile:

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



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
Value Replacement palups Excel Worksheet Functions 6 November 20th 09 02:38 AM
#N/A Replacement Susana C via OfficeKB.com Excel Discussion (Misc queries) 2 December 29th 06 05:06 PM
MsgBox Replacement w/ an UserForm Chuckles123[_32_] Excel Programming 1 October 9th 04 03:59 PM
MsgBox Replacement w/ an UserForm Chuckles123[_31_] Excel Programming 0 October 9th 04 02:38 PM
Replacement CD Greg Maloney Excel Programming 0 June 18th 04 11:29 AM


All times are GMT +1. The time now is 09:11 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"