Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 123
Default MsgBox popping up on entering of certain text in any row of Column X

Dear Experts:

I need help with a macro:

As soon as a user enters a certain string, say "text" in any row of
Column A (with the exception of the column heading) , a msgbox is to
pop up, saying "This is not allowed!"

I would favour a macro solution, but if there is a built-in
functionality to perform this, that would be great too.

Help is much appreciated. Thank you very much in advance.

Regards, Andreas
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default MsgBox popping up on entering of certain text in any row of Column

Hi Andreas,

Use Data Validation. (Unless the column header contains an invalid entry
then there is no reason not to apply the validation to the entire column.)

Instructions:
for xl2007
Select Column A or select from A2 to the bottom of the worksheet. (Select A2
and hold Ctrl and Shift keys down and continue to press down arrow until at
the bottom of the worksheet.)
Select Data ribbon
Select Data validation (Data tools block centre of ribbon)

For previous versions of xl
Select Column A or select from A2 to the bottom of the worksheet. (Select A2
and hold Ctrl and Shift keys down and continue to press down arrow until at
the bottom of the worksheet.)
Select Menu item Data - Validation

Remainder for all versions;
On the Settings Tab
Allow field: Select Custom
Formula field: =A1<"Text" (Use A2 if selection is A2 to bottom of
worksheet)

If you want an Input message then select Input Message tab and enter the
details.

If you want and and Error alert then select the tab and enter the details.

Note when you enter the data validation, after selecting the range, you
enter the formula as if it applies to the first cell of the selection only
and Excel looks after applying the correct formula to the rest of the
selection.

You can also use other formulas. for example do not allow "Text" or "Mytext"
or "Yourtext"

=AND(A1<"Text",A1<"Mytext",A1<"YourText")

--
Regards,

OssieMac


"andreashermle" wrote:

Dear Experts:

I need help with a macro:

As soon as a user enters a certain string, say "text" in any row of
Column A (with the exception of the column heading) , a msgbox is to
pop up, saying "This is not allowed!"

I would favour a macro solution, but if there is a built-in
functionality to perform this, that would be great too.

Help is much appreciated. Thank you very much in advance.

Regards, Andreas
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 123
Default MsgBox popping up on entering of certain text in any row ofColumn

On Jan 14, 10:01*am, OssieMac
wrote:
Hi Andreas,

Use Data Validation. (Unless the column header contains an invalid entry
then there is no reason not to apply the validation to the entire column.)

Instructions:
for xl2007
Select Column A or select from A2 to the bottom of the worksheet. (Select A2
and hold Ctrl and Shift keys down and continue to press down arrow until at
the bottom of the worksheet.)
Select Data ribbon
Select Data validation (Data tools block centre of ribbon)

For previous versions of xl
Select Column A or select from A2 to the bottom of the worksheet. (Select A2
and hold Ctrl and Shift keys down and continue to press down arrow until at
the bottom of the worksheet.)
Select Menu item Data - Validation

Remainder for all versions;
On the Settings Tab
Allow field: Select Custom
Formula field: =A1<"Text" * * *(Use A2 if selection is A2 to bottom of
worksheet)

If you want an Input message then select Input Message tab and enter the
details.

If you want and and Error alert then select the tab and enter the details..

Note when you enter the data validation, after selecting the range, you
enter the formula as if it applies to the first cell of the selection only
and Excel looks after applying the correct formula to the rest of the
selection.

You can also use other formulas. for example do not allow "Text" or "Mytext"
or "Yourtext"

=AND(A1<"Text",A1<"Mytext",A1<"YourText")

--
Regards,

OssieMac



"andreashermle" wrote:
Dear Experts:


I need help with a macro:


As soon as a user enters a certain string, say "text" in any row of
Column A (with the exception of the column heading) , a msgbox is to
pop up, saying "This is not allowed!"


I would favour a macro solution, but if there is a built-in
functionality to perform this, that would be great too.


Help is much appreciated. Thank you very much in advance.


Regards, Andreas
.- Hide quoted text -


- Show quoted text -


Hi OssiMac,

thank you very much for your professional help. I really appreciate
it.

It works as desired.

Regards, Andreas
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
My 3rd Msgbox is popping up in wrong position JMay Excel Programming 4 April 23rd 07 07:56 PM
Disable Text to Column from popping up automatcally Newbee via OfficeKB.com New Users to Excel 0 January 31st 07 01:52 PM
Entering variables on Msgbox prompt renegan[_6_] Excel Programming 3 January 4th 06 06:54 PM
MsgBox keeps popping up Rob[_17_] Excel Programming 1 January 25th 05 03:49 AM
Eliminating Excel msgbox from popping up while macro is running. dpdutke Excel Programming 2 November 23rd 03 07:55 PM


All times are GMT +1. The time now is 02:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"