text placeholder

G

Guest

Guest
hello everyone...

I asked this before, but didn't have any luck. I would like to do the following: have a certain piece of text (ie- "enter age here") in cell A1, unless the user enters their age there. When it is deleted, I would like the text to reappear (ie. "enter age here") In other words, this text would be a placeholer that informs the user of what to enter, dissappears when the user enters the text, and then reappears when the information is deleted from the cell. Any ideas? Thanks in advance!!!
 
giacomo,

Great- it worked, thanks! Now (sorry!), what if I also want the same thing for the cell below? I've copied the code changed the cell reference, and added it, but got an error! Is there a way to accomplish this!? Thanks again...
 
Upvote 0

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
On 2002-02-25 12:40, Anonymous wrote:
giacomo,

Great- it worked, thanks! Now (sorry!), what if I also want the same thing for the cell below? I've copied the code changed the cell reference, and added it, but got an error! Is there a way to accomplish this!? Thanks again...

Not sure why that didn't work for you, there were two cell references did you change both?

If you're still having trouble replace whatever you have with the following:

Dim cell
For Each cell In Range("a1:a2")
If cell = Empty Then cell.Value = "Enter Age Here"
Next cell
 
Upvote 0
Giacomo, thanks man, worked like $$. I really appreciate it....thanks for not giving up on me!
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,718
Members
448,986
Latest member
andreguerra

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