DRAFT watercolour or 'watercolor' for you Americans.

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
If it is a "WaterMark" template you are talking about, I copied this code to look at a while ago, never tried it myself.
Code:
Sub AddWatermark()
' Inserts a wordart "watermark" onto the current sheet with its
' upper left corner positioned on the upper left corner of the
' selected cell.

Dim StrIn As String
StrIn = InputBox("Enter watermark text")
If StrIn = "" Then Exit Sub

With ActiveSheet.Shapes.AddTextEffect(msoTextEffect9, StrIn, _
"Arial Black", 36#, msoFalse, msoFalse, _
10, 10)
.ScaleWidth 2, msoFalse, msoScaleFromTopLeft
.ScaleHeight 2, msoFalse, msoScaleFromBottomRight
.Fill.Visible = msoTrue
.Fill.Solid
.Fill.ForeColor.SchemeColor = 26
.Fill.Transparency = 0.5
.Shadow.Transparency = 0.5
.Line.Visible = msoFalse
'position at cell corner
.Top = Selection.Top
.Left = Selection.Left
End With
End Sub
 
Upvote 0
It's a bit 'funky' for my liking as I don't often use code in my spreadsheets, but it works.

Thanks
 
Upvote 0
I like the WordArt version better than inserting a Picture [Like MicroSoft indicates] and I use the code above, with a slight modification:


Sub mAddWatermark()
'Standard module code, like: Module1!
' Inserts a wordart "watermark" onto the current sheet at the
' upper left corner of the selected cell.
Dim myWMText As String

myWMText = InputBox("Enter watermark text:", "Build Watermark!", "DRAFT")

If myWMText = "" Then Exit Sub

With ActiveSheet.Shapes.AddTextEffect(msoTextEffect9, myWMText, _
"Arial Black", 36#, msoFalse, msoFalse, 10, 10)

.Name = "myWatermark"
.ScaleWidth 2, msoFalse, msoScaleFromTopLeft
.ScaleHeight 2, msoFalse, msoScaleFromBottomRight
.Fill.Visible = msoTrue
.Fill.Solid
.Fill.ForeColor.SchemeColor = 26
.Fill.Transparency = 0.5
.Shadow.Transparency = 0.5
.Line.Visible = msoFalse
.Top = Selection.Top
.Left = Selection.Left
End With
End Sub


Sub mEraseWatermark()
'Standard module code, like: Module1!
' Removes the wordart "watermark" created by "mAddWatermark."

ActiveSheet.Shapes("myWatermark").Select
Selection.Delete
End Sub
 
Upvote 0
question

SAy you have multi workbooks, plus some workbooks when printed are on 2 pages, do you have to put it on all pages?

or is there some code that would put it on every page of every workbook?
 
Upvote 0
Insert water mark on each printed page of the active sheet.



Sub SetPageBreaksByRowCount()
'Break on every 52 lines.
Dim rng As Range, pageRows#, totalRows#, n#

pageRows = 52 'insert a page break every nn lines

totalRows = Worksheets("Sheet1").Range("A65536").End(xlUp).Row
Worksheets("Sheet1").Rows(totalRows).PageBreak = xlPageBreakNone
n = 1

Do Until n > totalRows
n = n + pageRows
ActiveSheet.HPageBreaks.Add Before:=Rows(n)

If n - 26 > 26 Then
ActiveSheet.Cells(n - 26, 4).Select

With ActiveSheet.Shapes.AddTextEffect(msoTextEffect9, "DRAFT", _
"Arial Black", 36#, msoFalse, msoFalse, 10, 10)

.ScaleWidth 2, msoFalse, msoScaleFromTopLeft
.ScaleHeight 2, msoFalse, msoScaleFromBottomRight
.Fill.Visible = msoTrue
.Fill.Solid
.Fill.ForeColor.SchemeColor = 26
.Fill.Transparency = 0.5
.Shadow.Transparency = 0.5
.Line.Visible = msoFalse
.Top = Selection.Top
.Left = Selection.Left
End With
End If

Loop
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,738
Members
448,988
Latest member
BB_Unlv

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