Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2005

Tip: Looking for answers? Try searching our database.

Adding Buttons to MsgBox and vbDefaultButton4

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
George Lee - 18 Nov 2005 16:18 GMT
Can you add your own buttons to a Msgbox?

vbDefaultButton4 sets the default to the fourth button but no Msgbox has
four. I'd like to add one button if I could.
Karl E. Peterson - 18 Nov 2005 17:48 GMT
> Can you add your own buttons to a Msgbox?
>
> vbDefaultButton4 sets the default to the fourth button but no Msgbox
> has four. I'd like to add one button if I could.

The generally accepted practice is that if you need a custom message box,
your best bet is to "roll yer own."  There are numerous examples out there
on the web, and although most are probably done in Classic VB rather than
VBA the same principles would apply.
--
George Lee - 19 Nov 2005 21:30 GMT
I understand that is the generally accepted practice. However, I'd still like
to know how it's possible to add your own buttons. I could not find any
examples of my question on the Web.

> > Can you add your own buttons to a Msgbox?
> >
[quoted text clipped - 6 lines]
> VBA the same principles would apply.
> --
Karl E. Peterson - 23 Nov 2005 17:39 GMT
>>> Can you add your own buttons to a Msgbox?
>>>
[quoted text clipped - 9 lines]
> still like to know how it's possible to add your own buttons. I could
> not find any examples of my question on the Web.

That's a good indication. <g>

Sorry, no, it's really not possible.  I have no idea what the thinking was
for vbDefaultButton4.  Interesting question, really.
--
Working without a .NET?
http://classicvb.org/
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.