Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Are You Sure?    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Video Are You Sure
Bob Nimax 
     
12 months ago
Hello,
how could I also include in my function the second criteria "vbyesnocancel ...", so that it may be changed ?
Thanks in advance
Regards
Bob
Sami Shamma  @Reply  
             
12 months ago
just added with a plus sign in front of it. .... +vbyesnocancel
Bob Nimax OP  @Reply  
     
12 months ago
Thanks a lot for your kind assistance !
Bob Nimax OP  @Reply  
     
12 months ago
I'm really sorry to bother once more ... may this also be defined as a String ? Thanks Regards Bob
Kevin Robertson  @Reply  
          
12 months ago
You need to change the function slightly as you need to check for the values that will return True.
Something like this:

Public Function CustomMsgBox(Prompt As String, _
                            Optional Buttons As VbMsgBoxStyle = vbOKOnly, _
                            Optional Title As String = "") As Boolean

    Dim myReply As Long
    myReply = MsgBox(Prompt, Buttons, Title)
    
    If myReply = vbYes Or myReply = vbOK Then
        CustomMsgBox = True
    Else
        CustomMsgBox = False
    End If

End Function
Bob Nimax OP  @Reply  
     
12 months ago
Thanks Kevin ! Great help ! All the best and many thanks for your prompt reply ! Really appreciated ;0)

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Are You Sure?.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/8/2026 4:49:32 PM. PLT: 0s