Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Janet A. Thompson Janet A. Thompson is offline
external usenet poster
 
Posts: 57
Default Add Signature Tiff doc to 50 Word docs in same place

I have 50 word documents that I want to add the same signature to.
Can this be done via Mail Merge? How?
--
Janet A.
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Add Signature Tiff doc to 50 Word docs in same place

This is not a job for mail merge, but if the documents are all similar in
layout, the graphic is the correct size and will be inserted in the same
place in each document, it should be possible to achieve that with a batch
process using vba. Where *exactly* do you want the graphic to be placed.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Janet A. Thompson wrote:
I have 50 word documents that I want to add the same signature to.
Can this be done via Mail Merge? How?



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Janet A. Thompson Janet A. Thompson is offline
external usenet poster
 
Posts: 57
Default Add Signature Tiff doc to 50 Word docs in same place

I want it placed centered horizontally and centered vertically between two
lines. Let's say the first line is
for your successful achievement.


and the second line is
Manager of Project X

Thanks!
--
Janet A.


"Graham Mayor" wrote:

This is not a job for mail merge, but if the documents are all similar in
layout, the graphic is the correct size and will be inserted in the same
place in each document, it should be possible to achieve that with a batch
process using vba. Where *exactly* do you want the graphic to be placed.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Janet A. Thompson wrote:
I have 50 word documents that I want to add the same signature to.
Can this be done via Mail Merge? How?




  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Add Signature Tiff doc to 50 Word docs in same place

If the 50 documents were created originally by mail merge, it would be
simpler to modify the mail merge main document by adding the signature to it
and then re-execute the merge.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Janet A. Thompson" wrote in message
...
I want it placed centered horizontally and centered vertically between two
lines. Let's say the first line is
for your successful achievement.


and the second line is
Manager of Project X

Thanks!
--
Janet A.


"Graham Mayor" wrote:

This is not a job for mail merge, but if the documents are all similar in
layout, the graphic is the correct size and will be inserted in the same
place in each document, it should be possible to achieve that with a
batch
process using vba. Where *exactly* do you want the graphic to be placed.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Janet A. Thompson wrote:
I have 50 word documents that I want to add the same signature to.
Can this be done via Mail Merge? How?






  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Add Signature Tiff doc to 50 Word docs in same place

While I agree with Doug that re-merging would be the better option - if
applicable, the following macro will do as you asked. Define the path to
your signature file at sSig =
Put (COPIES OF) the documents in a new folder and run the macro. Select that
new folder at the prompt.

Sub AddSig()
Dim strFileName As String
Dim strPath As String
Dim oDoc As Document
Dim sFind As String
Dim sSig As String
Dim fDialog As FileDialog

Set fDialog = Application.FileDialog(msoFileDialogFolderPicker)
sFind = "for your successful achievement.^pManager of Project X"
sSig = "D:\My Documents\My Pictures\Signature.tif"

With fDialog
.Title = "Select Folder containing the documents to be modified and
click OK"
.AllowMultiSelect = False
.InitialView = msoFileDialogViewList
If .Show -1 Then
MsgBox "Cancelled By User"
Exit Sub
End If
strPath = fDialog.SelectedItems.Item(1)
If Right(strPath, 1) "\" Then strPath = strPath + "\"
End With

If Documents.Count 0 Then
Documents.Close SaveChanges:=wdPromptToSaveChanges
End If

strFileName = Dir$(strPath & "*.doc")
While Len(strFileName) 0
Set oDoc = Documents.Open(strPath & strFileName)
With Selection
With .Find
.ClearFormatting
.Text = sFind
.Replacement.Text = ""
.Wrap = wdFindContinue
.Execute
End With
.MoveRight Unit:=wdCharacter, Count:=1
.HomeKey Unit:=wdLine
.InlineShapes.AddPicture FileName:=sSig, _
LinkToFile:=False, _
SaveWithDocument:=True
.TypeParagraph
End With
oDoc.Close SaveChanges:=wdSaveChanges
Set oDoc = Nothing
GetNextDoc:
strFileName = Dir$()
Wend
End Sub
http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Janet A. Thompson wrote:
I want it placed centered horizontally and centered vertically
between two lines. Let's say the first line is
for your successful achievement.


and the second line is
Manager of Project X

Thanks!

This is not a job for mail merge, but if the documents are all
similar in layout, the graphic is the correct size and will be
inserted in the same place in each document, it should be possible
to achieve that with a batch process using vba. Where *exactly* do
you want the graphic to be placed.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Janet A. Thompson wrote:
I have 50 word documents that I want to add the same signature to.
Can this be done via Mail Merge? How?





  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Janet A. Thompson Janet A. Thompson is offline
external usenet poster
 
Posts: 57
Default Add Signature Tiff doc to 50 Word docs in same place

Oh WOW!! I can't wait to test it out. Something like this was what I was
hoping for. Thanks!
--
Janet A.


"Graham Mayor" wrote:

While I agree with Doug that re-merging would be the better option - if
applicable, the following macro will do as you asked. Define the path to
your signature file at sSig =
Put (COPIES OF) the documents in a new folder and run the macro. Select that
new folder at the prompt.

Sub AddSig()
Dim strFileName As String
Dim strPath As String
Dim oDoc As Document
Dim sFind As String
Dim sSig As String
Dim fDialog As FileDialog

Set fDialog = Application.FileDialog(msoFileDialogFolderPicker)
sFind = "for your successful achievement.^pManager of Project X"
sSig = "D:\My Documents\My Pictures\Signature.tif"

With fDialog
.Title = "Select Folder containing the documents to be modified and
click OK"
.AllowMultiSelect = False
.InitialView = msoFileDialogViewList
If .Show -1 Then
MsgBox "Cancelled By User"
Exit Sub
End If
strPath = fDialog.SelectedItems.Item(1)
If Right(strPath, 1) "\" Then strPath = strPath + "\"
End With

If Documents.Count 0 Then
Documents.Close SaveChanges:=wdPromptToSaveChanges
End If

strFileName = Dir$(strPath & "*.doc")
While Len(strFileName) 0
Set oDoc = Documents.Open(strPath & strFileName)
With Selection
With .Find
.ClearFormatting
.Text = sFind
.Replacement.Text = ""
.Wrap = wdFindContinue
.Execute
End With
.MoveRight Unit:=wdCharacter, Count:=1
.HomeKey Unit:=wdLine
.InlineShapes.AddPicture FileName:=sSig, _
LinkToFile:=False, _
SaveWithDocument:=True
.TypeParagraph
End With
oDoc.Close SaveChanges:=wdSaveChanges
Set oDoc = Nothing
GetNextDoc:
strFileName = Dir$()
Wend
End Sub
http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Janet A. Thompson wrote:
I want it placed centered horizontally and centered vertically
between two lines. Let's say the first line is
for your successful achievement.


and the second line is
Manager of Project X

Thanks!

This is not a job for mail merge, but if the documents are all
similar in layout, the graphic is the correct size and will be
inserted in the same place in each document, it should be possible
to achieve that with a batch process using vba. Where *exactly* do
you want the graphic to be placed.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Janet A. Thompson wrote:
I have 50 word documents that I want to add the same signature to.
Can this be done via Mail Merge? How?




  #7   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Janet A. Thompson Janet A. Thompson is offline
external usenet poster
 
Posts: 57
Default Add Signature Tiff doc to 50 Word docs in same place

Graham,
I am sorry to admit it but I read all thru your website link at the
bottom of your most kind post, and I don't know in which document to save the
macro or if it even would be saved into a document?
I am a beginner VBAer. On another note, where or what is a good course
to go to learn VBA? So I have two questions: where to plug the macro is the
other.
Thanks!!
--
Janet A.


"Janet A. Thompson" wrote:

Oh WOW!! I can't wait to test it out. Something like this was what I was
hoping for. Thanks!
--
Janet A.


"Graham Mayor" wrote:

While I agree with Doug that re-merging would be the better option - if
applicable, the following macro will do as you asked. Define the path to
your signature file at sSig =
Put (COPIES OF) the documents in a new folder and run the macro. Select that
new folder at the prompt.

Sub AddSig()
Dim strFileName As String
Dim strPath As String
Dim oDoc As Document
Dim sFind As String
Dim sSig As String
Dim fDialog As FileDialog

Set fDialog = Application.FileDialog(msoFileDialogFolderPicker)
sFind = "for your successful achievement.^pManager of Project X"
sSig = "D:\My Documents\My Pictures\Signature.tif"

With fDialog
.Title = "Select Folder containing the documents to be modified and
click OK"
.AllowMultiSelect = False
.InitialView = msoFileDialogViewList
If .Show -1 Then
MsgBox "Cancelled By User"
Exit Sub
End If
strPath = fDialog.SelectedItems.Item(1)
If Right(strPath, 1) "\" Then strPath = strPath + "\"
End With

If Documents.Count 0 Then
Documents.Close SaveChanges:=wdPromptToSaveChanges
End If

strFileName = Dir$(strPath & "*.doc")
While Len(strFileName) 0
Set oDoc = Documents.Open(strPath & strFileName)
With Selection
With .Find
.ClearFormatting
.Text = sFind
.Replacement.Text = ""
.Wrap = wdFindContinue
.Execute
End With
.MoveRight Unit:=wdCharacter, Count:=1
.HomeKey Unit:=wdLine
.InlineShapes.AddPicture FileName:=sSig, _
LinkToFile:=False, _
SaveWithDocument:=True
.TypeParagraph
End With
oDoc.Close SaveChanges:=wdSaveChanges
Set oDoc = Nothing
GetNextDoc:
strFileName = Dir$()
Wend
End Sub
http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Janet A. Thompson wrote:
I want it placed centered horizontally and centered vertically
between two lines. Let's say the first line is
for your successful achievement.


and the second line is
Manager of Project X

Thanks!

This is not a job for mail merge, but if the documents are all
similar in layout, the graphic is the correct size and will be
inserted in the same place in each document, it should be possible
to achieve that with a batch process using vba. Where *exactly* do
you want the graphic to be placed.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Janet A. Thompson wrote:
I have 50 word documents that I want to add the same signature to.
Can this be done via Mail Merge? How?




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Word 2003 Docs to JPG and/or TIFF Jill Microsoft Word Help 8 July 25th 08 12:22 PM
place holders in signature Mominator Microsoft Word Help 3 April 16th 07 07:38 AM
Place a signature in a word document Allan Microsoft Word Help 2 October 27th 05 06:50 AM
inserting tiff files into word docs and the margins change. redronimarie Microsoft Word Help 1 July 22nd 05 06:09 PM
how to scan a signature into word and place jbm New Users 1 December 29th 04 08:39 PM


All times are GMT +1. The time now is 08:42 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"