drop down list

dc135custom

New Member
Joined
Nov 21, 2002
Messages
44
Ok I tried approaching this another way I still want to control the color of the text in two diffetent text boxes, not cells, that act as stamps (see "drop down box" question dated Jan 11 2005). How can I write the macro to basically say "if" you choose one entry in the drop down list it will turn the text in one text box black (visible) and the text in the other text box white (invisible) and visa versa "if" the other entry is chosen? I put the if in quotes because I see this as being an if statement. Hoping this made sense.

Rick
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi

You might find this useful, instead of turning the text white, or invisible as you say, it will still be noticeable if the text goes over gridlines.

some code to put in the Sheet window

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Sheet1.Range("A1") <> "" Then
ActiveSheet.Shapes("Text Box 1").Visible = True
ActiveSheet.Shapes("Text Box 2").Visible = False
Else
ActiveSheet.Shapes("Text Box 2").Visible = True
ActiveSheet.Shapes("Text Box 1").Visible = False
End If
End Sub

You can hack this about as you please,

John
 
Upvote 0

Forum statistics

Threads
1,203,052
Messages
6,053,225
Members
444,648
Latest member
sinkuan85

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top