Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello all
I created a watermark in each sheet. When I run my WatermarkGone macro, all watermarks and pictures/graphics are removed. But, I want to remove the watermark only. How can I do that? Please give me some advices. Here are my Watermark and WatermarkGone code: Sub WaterMarkerGone() Dim intSheet As Integer Dim wkBook As Workbook Dim wkSheet As Worksheet Dim intShape As Integer Dim totalCount As Integer Dim totalShapes As Integer totalCount = ActiveWorkbook.Worksheets.Count For intSheet = 1 To totalCount Set wkSheet = ActiveWorkbook.Worksheets(intSheet) totalShapes = wkSheet.Shapes.Count Do While totalShapes 0 wkSheet.Shapes(totalShapes).Delete totalShapes = totalShapes - 1 Loop Next intSheet End Sub Sub Watermark() Dim wkSheet As Integer Set myDocument = ActiveWorkbook For wkSheet = 1 To ActiveWorkbook.Sheets.Count Set myWatermark = myDocument.Worksheets(wkSheet).Shapes.AddTextEffec t( _ PresetTextEffect:=msoTextEffect2, _ Text:="Draft", _ FontName:="Arial Black", _ FontSize:=36, _ FontBold:=False, _ FontItalic:=False, _ Left:=318.75, _ Top:=159.75) With myWatermark Name = "Dum" .IncrementRotation -43.46 .Fill.Visible = msoFalse .Fill.Transparency = 0.5 .Fill.Solid .Fill.ForeColor.SchemeColor = 22 .Line.Weight = 0.75 .Line.DashStyle = msoLineSolid .Line.Style = msoLineSingle .Line.Transparency = 0# .Line.Visible = msoTrue .Line.ForeColor.SchemeColor = 22 .Line.BackColor.RGB = RGB(255, 255, 255) .ZOrder msoBringToFront End With Next wkSheet End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I remove a watermark in Excel | Excel Worksheet Functions | |||
How do I remove Watermark from View. | Excel Discussion (Misc queries) | |||
How do I add/remove a text watermark in an Excel spreadsheet? | Excel Discussion (Misc queries) | |||
remove the watermark in Excel (2000) "Page1" | Excel Discussion (Misc queries) | |||
trying to remove a watermark on the excel sheet | Excel Worksheet Functions |