ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   message box question (https://www.excelbanter.com/excel-programming/294603-message-box-question.html)

mark

message box question
 
hi

just wondering if there's a way to set up 'never show this
message again' kind of thing in excel vba code.
thanks

Olly[_6_]

message box question
 
You could look at the value of a (maybe hidden?) cell before opening a
userform, and change the value of this cell if a 'never show again' option
is checked.

e.g., to call the form if wanted:

=
If MyCell.Value < True Then MyUserForm.Show
=

Add a line in the UserForm_QueryClose event:

=
MyCell.Value = MyUserForm.MyCheckBox.Value
=


--
Olly


"mark" wrote in message
...
hi

just wondering if there's a way to set up 'never show this
message again' kind of thing in excel vba code.
thanks




kkknie[_18_]

message box question
 
What type of message do you not want to see again?



--
Message posted from http://www.ExcelForum.com


Bob Phillips[_6_]

message box question
 
Mark,

One way would be to create a userform that shows the message as a label, and
also has the 'Never show' text below with a checkbox. If the checkbox is
checked, create a named range with a value of True say. Always check this
value to see whether to show the form, something like

If Range("NeverShow").Value = FALSE Then
myMessageForm.Show
End If

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"mark" wrote in message
...
hi

just wondering if there's a way to set up 'never show this
message again' kind of thing in excel vba code.
thanks




mark

message box question
 
wow thanks. never thought of that

-----Original Message-----
You could look at the value of a (maybe hidden?) cell

before opening a
userform, and change the value of this cell if a 'never

show again' option
is checked.

e.g., to call the form if wanted:

=
If MyCell.Value < True Then MyUserForm.Show
=

Add a line in the UserForm_QueryClose event:

=
MyCell.Value = MyUserForm.MyCheckBox.Value
=


--
Olly


"mark" wrote in

message
...
hi

just wondering if there's a way to set up 'never show

this
message again' kind of thing in excel vba code.
thanks



.



All times are GMT +1. The time now is 07:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com