Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default using an if then statement call a caption box to a cell


In my excel project, I have a cell that performs a sum function. a
associated goal is tied to that cell and consequently the results...
want to develop an if then statement that upon reaching the goal,
caption, lable, or text box (msgbox) will appear and give a message t
the user...how is this possible?

tks ahead of time

ratt ou

--
rat
-----------------------------------------------------------------------
ratt's Profile: http://www.excelforum.com/member.php...fo&userid=2431
View this thread: http://www.excelforum.com/showthread.php?threadid=37957

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default using an if then statement call a caption box to a cell


do you use a control to put it in or do you put it directly tin to th
code...do you dim ianything in the code or do you simply put it in th
cell like you would a formula?

tk

--
rat
-----------------------------------------------------------------------
ratt's Profile: http://www.excelforum.com/member.php...fo&userid=2431
View this thread: http://www.excelforum.com/showthread.php?threadid=37957

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default using an if then statement call a caption box to a cell


Hi,

Since you posted this in the programming section, and since you had not
given any more details....

Assuming that you enter your input in cells A1 and A2, And cell B2 is
the one which you want to check, you could have enter the following
code in the module of the concerned sheet. Right click on the tab which
holds the sheet name, click view code, and enter the following code:


Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Or Target.Address = "$A$2" Then
If Range("B2") = 100 Then
MsgBox ("Goal value reached")
End If
End If
End Sub


Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=379571

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
Caption attribute at Cell in Excel XML dob_xml Excel Discussion (Misc queries) 0 November 27th 06 12:05 PM
using an if then statement call a caption box to a cell ratt[_2_] Excel Programming 1 June 16th 05 05:30 AM
using an if then statement call a caption box to a cell mangesh_yadav[_325_] Excel Programming 0 June 16th 05 05:02 AM
Textbox.caption to cell if empty, how? WTG Excel Programming 3 February 27th 05 04:51 AM
Can you call a macro as in an IF statement kls[_2_] Excel Programming 2 September 11th 04 10:48 PM


All times are GMT +1. The time now is 09:13 AM.

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

About Us

"It's about Microsoft Excel"