Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default show different text in a text box depending on cell value

..Is it possible to automatically show different text in a text box depending
on different cell value. eg. if cell a1=6, text box would show "Correct", if
cell a1=7, text box would show "Incorrect" etc
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default show different text in a text box depending on cell value

Just test the value as normal

If Range("A1").Value = 6 Then
Textbox1.TExt = "Correct"
Else
Textbox1.TExt = "Incorrect"
End If

--

HTH

RP
(remove nothere from the email address if mailing direct)


"John Davies" wrote in message
...
.Is it possible to automatically show different text in a text box

depending
on different cell value. eg. if cell a1=6, text box would show "Correct",

if
cell a1=7, text box would show "Incorrect" etc



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
get cell to automatically change colour depending on text in adja. wilko Excel Discussion (Misc queries) 2 November 10th 09 01:55 PM
Formula to display text depending upon date entered in a cell Rod from B.C. Government Excel Worksheet Functions 2 May 25th 09 10:03 PM
grab cell text from multi-tab workbook, show text in another workb pfa Excel Worksheet Functions 16 August 10th 07 08:50 PM
How to insert line of text on other worksheet depending upon result in a cell? Pheasant Plucker® Excel Discussion (Misc queries) 3 March 20th 06 03:05 PM
Changing cell or text color depending on week number Roger Excel Discussion (Misc queries) 2 April 12th 05 09:42 AM


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

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"