PC Review


Reply
Thread Tools Rate Thread

How to desensitize the "X" on Inputboxs, Textboxes and other gui's

 
 
wagee@btinternet.com
Guest
Posts: n/a
 
      28th Jun 2008
Good morning!

I find myself without my VBA bible, it is at work and I am at
home....in it was a method to desenitize the "X" found on various
boxes that can be build via VBA. To my horror I have found several
field type people (read that as users) who are using this 'X' and
blowing up my VBA utility.

Can some one offer the fix for this that I can't quite remember and
put me out of my misery?

Thanks

Wayne
 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      28th Jun 2008
http://peltiertech.com/WordPress/200...-vba-userform/

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


<(E-Mail Removed)> wrote in message
news:ee0283ec-ad1d-47f3-bc11-(E-Mail Removed)...
> Good morning!
>
> I find myself without my VBA bible, it is at work and I am at
> home....in it was a method to desenitize the "X" found on various
> boxes that can be build via VBA. To my horror I have found several
> field type people (read that as users) who are using this 'X' and
> blowing up my VBA utility.
>
> Can some one offer the fix for this that I can't quite remember and
> put me out of my misery?
>
> Thanks
>
> Wayne



 
Reply With Quote
 
wagee@btinternet.com
Guest
Posts: n/a
 
      28th Jun 2008
On Jun 28, 2:13*pm, "Jon Peltier" <jonxlmv...@SPAMpeltiertech.com>
wrote:
> http://peltiertech.com/WordPress/200...he-red-x-close...
>
> - Jon
> -------
> Jon Peltier, Microsoft Excel MVP
> Tutorials and Custom Solutions
> Peltier Technical Services, Inc. -http://PeltierTech.com
> _______
>
> <wa...@btinternet.com> wrote in message
>
> news:ee0283ec-ad1d-47f3-bc11-(E-Mail Removed)...
>
>
>
> > Good morning!

>
> > I find myself without my VBA bible, it is at work and I am at
> > home....in it was a method to desenitize the "X" found on various
> > boxes that can be build via VBA. To my horror I have found several
> > field type people (read that as users) who are using this 'X' and
> > blowing up my VBA utility.

>
> > Can some one offer the fix for this that I can't quite remember and
> > put me out of my misery?

>
> > Thanks

>
> > Wayne- Hide quoted text -

>
> - Show quoted text -


Thanks Jon but I really do want to make the X not active in a similar
manner as to when options are set to vbYesNo. Thanks for helping
however.

Wayne
 
Reply With Quote
 
wagee@btinternet.com
Guest
Posts: n/a
 
      28th Jun 2008
On Jun 28, 2:13*pm, "Jon Peltier" <jonxlmv...@SPAMpeltiertech.com>
wrote:
> http://peltiertech.com/WordPress/200...he-red-x-close...
>
> - Jon
> -------
> Jon Peltier, Microsoft Excel MVP
> Tutorials and Custom Solutions
> Peltier Technical Services, Inc. -http://PeltierTech.com
> _______
>
> <wa...@btinternet.com> wrote in message
>
> news:ee0283ec-ad1d-47f3-bc11-(E-Mail Removed)...
>
>
>
> > Good morning!

>
> > I find myself without my VBA bible, it is at work and I am at
> > home....in it was a method to desenitize the "X" found on various
> > boxes that can be build via VBA. To my horror I have found several
> > field type people (read that as users) who are using this 'X' and
> > blowing up my VBA utility.

>
> > Can some one offer the fix for this that I can't quite remember and
> > put me out of my misery?

>
> > Thanks

>
> > Wayne- Hide quoted text -

>
> - Show quoted text -

Thanks Jon but I really do want to make the X not active in a similar
manner as to when options are set to vbYesNo. This is mostly an issue
with inputbox I think. I can use your suggestions for other userforms.
Thanks for helping however.

Wayne

 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      28th Jun 2008
Rather than "desensitize" the "X", you should allow the user to do that
(it's a common Windows thing to do) and set up your code to handle the
action. If you are running from a UserForm, use the UserForm_QueryClose
event to perform whatever clean-up code you now perform when your users
click your current ExitButton/ExitMenuItem/etc. By the way, to answer your
question, setting Cancel = True in this event will "desensitize" the "X" for
you (but I strongly suggest you not do this as it makes your code seem
unprofessional). If you are not using a UserForm, then put your clean-up
code in the Workbook_BeforeClose (this event kicks off when the user closes
Excel itself).

Rick


<(E-Mail Removed)> wrote in message
news:ee0283ec-ad1d-47f3-bc11-(E-Mail Removed)...
> Good morning!
>
> I find myself without my VBA bible, it is at work and I am at
> home....in it was a method to desenitize the "X" found on various
> boxes that can be build via VBA. To my horror I have found several
> field type people (read that as users) who are using this 'X' and
> blowing up my VBA utility.
>
> Can some one offer the fix for this that I can't quite remember and
> put me out of my misery?
>
> Thanks
>
> Wayne


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Field Names: "LongName", "ShortName", "Code", "Description","Comments" PeteCresswell Microsoft Access 2 25th Feb 2009 11:41 PM
How to desensitize the "X" on Inputboxs, Textboxes and other gui's wagee@btinternet.com Microsoft Excel Programming 2 1st Jul 2008 09:51 PM
Highlight / "Selection" of AutoShape Text (Like SelStart for TextBoxes) James Cox Microsoft Excel Programming 0 18th May 2005 06:05 PM
<FORM METHOD="post" onSubmit="return fieldcheck()" name="orientation" action="http://ws-kitty.BU.edu/AT/survey/orientation/script/write.asp" language="JavaScript"> Joeyej Microsoft ASP .NET 0 4th Jun 2004 08:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:38 PM.