Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-25-2012, 05:41 AM
AOsment742 AOsment742 is offline Problems with Watermark Windows XP Problems with Watermark Office 2007
Novice
Problems with Watermark
 
Join Date: May 2012
Posts: 8
AOsment742 is on a distinguished road
Default

We don't appear to be using either of these. To be honest, we know very little about Word. We opened word and recorded the macro to get the vba to add a watermark and we copied this code over to an access module. Like I said earlier, when we added the watermark in Word it was on every page. But when we try to open the document from Access and add the watermark through the module, the first page does not have it. Thanks for your help.
Code:
Set doc = appWord.Parent.Documents.Open(NewDoc, , False, False)
Set doc = appWord.ActiveDocument
appWord.ActiveDocument.Sections(1).Range.Select
doc.ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
doc.ActiveWindow.Selection.HeaderFooter.Shapes.AddTextEffect( _
PowerPlusWaterMarkObject325783140, FileType, "Arial Narrow", _
38, False, False, 0, 0).Select
doc.ActiveWindow.Selection.ShapeRange.Name = "PowerPlusWaterMarkObject71909250"
doc.ActiveWindow.Selection.ShapeRange.TextEffect.NormalizedHeight = False
doc.ActiveWindow.Selection.ShapeRange.Line.Visible = False
doc.ActiveWindow.Selection.ShapeRange.Fill.Visible = True
doc.ActiveWindow.Selection.ShapeRange.Fill.Solid
doc.ActiveWindow.Selection.ShapeRange.Fill.ForeColor.RGB = RGB(192, 192, 192)
doc.ActiveWindow.Selection.ShapeRange.Fill.Transparency = 0.5
doc.ActiveWindow.Selection.ShapeRange.Rotation = 315
doc.ActiveWindow.Selection.ShapeRange.LockAspectRatio = True
doc.ActiveWindow.Selection.ShapeRange.Height = InchesToPoints(3.29)
doc.ActiveWindow.Selection.ShapeRange.Width = InchesToPoints(6.85)
doc.ActiveWindow.Selection.ShapeRange.WrapFormat.AllowOverlap = True
doc.ActiveWindow.Selection.ShapeRange.WrapFormat.Side = wdWrapNone
doc.ActiveWindow.Selection.ShapeRange.Left = appWord.InchesToPoints(-0.5)
doc.ActiveWindow.Selection.ShapeRange.WrapFormat.Type = 3
doc.ActiveWindow.Selection.ShapeRange.RelativeHorizontalPosition = _
wdRelativeVerticalPositionMargin
doc.ActiveWindow.Selection.ShapeRange.RelativeVerticalPosition = _
wdRelativeVerticalPositionMargin
doc.ActiveWindow.Selection.ShapeRange.Top = InchesToPoints(3)
doc.ActiveWindow.Selection.FormattedText.ShowAll = False
doc.ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
doc.ActiveWindow.Document.ActiveWindow.View = wdPrintView
doc.ActiveWindow.View.ShowMarkupAreaHighlight = False
doc.ActiveWindow.View.ShowComments = False
doc.ActiveWindow.Document.FormattingShowClear = True
doc.ActiveWindow.View.ShowRevisionsAndComments = False
'Save Document as PDF
doc.ActiveWindow.ActivePane.Application.ActiveDocument.SaveAs FileName:=NewFName, _
FileFormat:=wdFormatPDF
'Close application and document
doc.Application.ActiveDocument.Close False
appWord.Application.Quit
Set appWord = Nothing
Set doc = Nothing


Last edited by macropod; 05-25-2012 at 03:44 PM. Reason: Added code tags
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Watermark Background/watermark won't go away Lea Word 6 04-07-2014 08:59 AM
Problems with Watermark Watermark deletes headers ChrisDevrell Word 1 05-01-2012 07:23 AM
Problems with Watermark Word watermark jonmac29 Word 3 04-26-2011 04:43 AM
Problems with Watermark Watermark saslotteroy Word 1 04-12-2011 03:52 AM
watermark issues kknutson Word 0 03-19-2007 10:17 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:04 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft