ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   show different text in a text box depending on cell value (https://www.excelbanter.com/excel-programming/335855-show-different-text-text-box-depending-cell-value.html)

John Davies

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

Bob Phillips[_6_]

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





All times are GMT +1. The time now is 10:36 AM.

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