Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default IF function message too big for cell - automate reply?

I have an IF function that if TRUE returns user information text too large
for the nominated cell B34. How can I have a user information message box
appear with this text in it if the IF function returns TRUE?
Or is there another way of generating this user message when the IF function
returns TRUE?
I do not think I can use Data Validation as the nominated cell is not
selected by the user and holds the IF function based on data in other cells.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 167
Default IF function message too big for cell - automate reply?

Colin,

Set your if statement true value to "TRUE" (ie. B34 is =if('your condition',
TRUE, 'false value'). Then add the following to the sheet code:

Private Sub Worksheet_Calculate()
If Range("B34").Value Then MsgBox ("Put Your Message Here")
End Sub

To add code to the sheet, right click the sheet tab and click "view code"
Paste the code above into the VBA window that opens.

Mike
"Colinhp" wrote:

I have an IF function that if TRUE returns user information text too large
for the nominated cell B34. How can I have a user information message box
appear with this text in it if the IF function returns TRUE?
Or is there another way of generating this user message when the IF function
returns TRUE?
I do not think I can use Data Validation as the nominated cell is not
selected by the user and holds the IF function based on data in other cells.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default IF function message too big for cell - automate reply?

Hi,

This would work okay if the user only had one cell to select from, but the
IF statement condition in B34 is based on 10 cells, and this message would
appear as soon as one cell is changed.
This is the IF statement.
=IF(COUNTA(Scoring_Operational)<10,"",SUM(Scoring_ Operational)*2). The NAME
Scoring_Operational refers to 10 cells.
I require the message to appear only if all ten cells are changed.
Apologies for not supplying enough detail.

"crazybass2" wrote:

Colin,

Set your if statement true value to "TRUE" (ie. B34 is =if('your condition',
TRUE, 'false value'). Then add the following to the sheet code:

Private Sub Worksheet_Calculate()
If Range("B34").Value Then MsgBox ("Put Your Message Here")
End Sub

To add code to the sheet, right click the sheet tab and click "view code"
Paste the code above into the VBA window that opens.

Mike
"Colinhp" wrote:

I have an IF function that if TRUE returns user information text too large
for the nominated cell B34. How can I have a user information message box
appear with this text in it if the IF function returns TRUE?
Or is there another way of generating this user message when the IF function
returns TRUE?
I do not think I can use Data Validation as the nominated cell is not
selected by the user and holds the IF function based on data in other cells.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 167
Default IF function message too big for cell - automate reply?

Colin,

OK, I can work with that too...need more info though.

When you say 'only if all ten cells are changed' do you mean changed from
their initial value upon opening the document? Does the order of change
matter (can I change cells in any order or only in a specific order)? Are
the 10 cells changed by the user, by a function, or by VBA code? What are
the ten cells? Does the range change or is it always the same 10 cells?

Mike



"Colinhp" wrote:

Hi,

This would work okay if the user only had one cell to select from, but the
IF statement condition in B34 is based on 10 cells, and this message would
appear as soon as one cell is changed.
This is the IF statement.
=IF(COUNTA(Scoring_Operational)<10,"",SUM(Scoring_ Operational)*2). The NAME
Scoring_Operational refers to 10 cells.
I require the message to appear only if all ten cells are changed.
Apologies for not supplying enough detail.

"crazybass2" wrote:

Colin,

Set your if statement true value to "TRUE" (ie. B34 is =if('your condition',
TRUE, 'false value'). Then add the following to the sheet code:

Private Sub Worksheet_Calculate()
If Range("B34").Value Then MsgBox ("Put Your Message Here")
End Sub

To add code to the sheet, right click the sheet tab and click "view code"
Paste the code above into the VBA window that opens.

Mike
"Colinhp" wrote:

I have an IF function that if TRUE returns user information text too large
for the nominated cell B34. How can I have a user information message box
appear with this text in it if the IF function returns TRUE?
Or is there another way of generating this user message when the IF function
returns TRUE?
I do not think I can use Data Validation as the nominated cell is not
selected by the user and holds the IF function based on data in other cells.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default IF function message too big for cell - automate reply?

Hi,

I've found a way round this by having an information message box shown when
the user opens the worksheet and also when they exit. Thank you for your
help. The code you supplied I have used elsewhere in the same workbook.

"crazybass2" wrote:

Colin,

OK, I can work with that too...need more info though.

When you say 'only if all ten cells are changed' do you mean changed from
their initial value upon opening the document? Does the order of change
matter (can I change cells in any order or only in a specific order)? Are
the 10 cells changed by the user, by a function, or by VBA code? What are
the ten cells? Does the range change or is it always the same 10 cells?

Mike



"Colinhp" wrote:

Hi,

This would work okay if the user only had one cell to select from, but the
IF statement condition in B34 is based on 10 cells, and this message would
appear as soon as one cell is changed.
This is the IF statement.
=IF(COUNTA(Scoring_Operational)<10,"",SUM(Scoring_ Operational)*2). The NAME
Scoring_Operational refers to 10 cells.
I require the message to appear only if all ten cells are changed.
Apologies for not supplying enough detail.

"crazybass2" wrote:

Colin,

Set your if statement true value to "TRUE" (ie. B34 is =if('your condition',
TRUE, 'false value'). Then add the following to the sheet code:

Private Sub Worksheet_Calculate()
If Range("B34").Value Then MsgBox ("Put Your Message Here")
End Sub

To add code to the sheet, right click the sheet tab and click "view code"
Paste the code above into the VBA window that opens.

Mike
"Colinhp" wrote:

I have an IF function that if TRUE returns user information text too large
for the nominated cell B34. How can I have a user information message box
appear with this text in it if the IF function returns TRUE?
Or is there another way of generating this user message when the IF function
returns TRUE?
I do not think I can use Data Validation as the nominated cell is not
selected by the user and holds the IF function based on data in other cells.



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
Macro message box - automate to say yes only if no is not selected csdjj Excel Discussion (Misc queries) 0 July 29th 09 04:34 PM
Box With REPLY appended To A Cell: What Is It ? Robert11[_3_] New Users to Excel 3 March 11th 09 02:50 AM
To: Gary's Student cell address reply ppbedz Excel Discussion (Misc queries) 5 April 17th 06 10:47 PM
Macro to automate page protection based on combo box reply wongard Excel Discussion (Misc queries) 9 September 9th 05 06:47 AM
what is 'too many different cell formats' reply? tommy Excel Discussion (Misc queries) 4 December 17th 04 06:23 AM


All times are GMT +1. The time now is 06:11 PM.

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"