Comments until cell is filled

goofy78270

Well-known Member
Joined
May 16, 2007
Messages
555
I am looking to create a watermark type effect for certain cells within a spreadsheet. To explain, I am looking to create a page with required entry cells. First, I would like to set the tab to hit certain cells and not every cell. Then, with the cell that is highlighted I would like to have a watermark stating what should be entered into this field such as their name. Once they start typing, the watermark will be gone and only their text will show. Then if they go back and delete their entry, the watermark will return.

I am looking to use this as a quick reference to what a cell is rather than creating title in a seperate column and/or row due to the space given to allow for entries. I only have a certain amount of space for entries based on the size of the page and the amount of information I am trying to present.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
I don't think you can do this. I know you can use a text box to do this type of thing.

Michael
 
Upvote 0
Hi,

You could have a play with labels, making visible or invisible, but that would be difficult to maintain.

This is my first thought: use "automatic datavaladition (only inputmessage)".
Setup your sheet like this (assuming you hide columns H and I)
  H      I         
1 adress message   
2 A4     message 1 
3 C6     message 2 
4 B11    message 3 
5 E13    message 4 
6 G17    message 5 

Sheet1

[Table-It] version 07 by Erik Van Geit

sheetcode
Code:
Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)
Call update_watermark(Target)
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Call update_watermark(Target)
End Sub

Sub update_watermark(Target As Range)

Dim LR As Long
Dim i As Long

    LR = Range("H" & Rows.Count).End(xlUp).Row
    
    With Target
    If .Count > 1 Then Exit Sub

        For i = 2 To LR
            If Target.Address(0, 0) = Range("H" & i) Then
                With .Validation
                .Delete
                .Add Type:=xlValidateInputOnly, AlertStyle:=xlValidAlertStop, Operator _
                :=xlBetween
                .InputMessage = IIf(Target = vbNullString, Range("I" & i), vbNullString)
                End With
            End If
        Next i
    End With

End Sub
kind regards,
Erik
 
Upvote 0

Forum statistics

Threads
1,214,786
Messages
6,121,548
Members
449,038
Latest member
Guest1337

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