Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Cali Tech
 
Posts: n/a
Default Changing the author on over 100 Docs

I have over 100 docs that have the Author under my old name. I have changed
my name and want to change all my docs to display my new name. Is there an
efficient
way of doing this?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill
 
Posts: n/a
Default Changing the author on over 100 Docs

See http://word.mvps.org/faqs/macrosvba/DSOFile.htm

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Cali Tech" wrote in message
...
I have over 100 docs that have the Author under my old name. I have

changed
my name and want to change all my docs to display my new name. Is there an
efficient
way of doing this?


  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Greg
 
Posts: n/a
Default Changing the author on over 100 Docs

Or you could use a bit of VBA to open each document and change the
Author. First place all of the files in a common directory. In this
example is used:

C:\Batch Folder

Public Sub BatchChangeProperty()

Dim myFile As String
Dim PathToUse As String
Dim myDoc As Document

PathToUse = "C:\Batch Folder\"
'Close all open documents before beginning
On Error Resume Next
Documents.Close SaveChanges:=wdPromptToSaveChanges
On Error GoTo 0
'Set the directory and type of file to batch process
myFile = Dir$(PathToUse & "*.doc")
While myFile ""
'Open document
Set myDoc = Documents.Open(PathToUse & myFile)
'Make the change
ActiveDocument.BuiltInDocumentProperties("Author") .Value = "Your new
name"
'Close the modified document after saving changes
myDoc.Close SaveChanges:=wdSaveChanges
'Next file in folder
myFile = Dir$()
Wend
End Sub

  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Cali Tech
 
Posts: n/a
Default Changing the author on over 100 Docs

So I would create this file in notepad and give it a .bat extention?
Or how do I create this VBA file? Just a little over my head.
And what else to I have to change in this script besides "your new name"

"Greg" wrote:

Or you could use a bit of VBA to open each document and change the
Author. First place all of the files in a common directory. In this
example is used:

C:\Batch Folder

Public Sub BatchChangeProperty()

Dim myFile As String
Dim PathToUse As String
Dim myDoc As Document

PathToUse = "C:\Batch Folder\"
'Close all open documents before beginning
On Error Resume Next
Documents.Close SaveChanges:=wdPromptToSaveChanges
On Error GoTo 0
'Set the directory and type of file to batch process
myFile = Dir$(PathToUse & "*.doc")
While myFile ""
'Open document
Set myDoc = Documents.Open(PathToUse & myFile)
'Make the change
ActiveDocument.BuiltInDocumentProperties("Author") .Value = "Your new
name"
'Close the modified document after saving changes
myDoc.Close SaveChanges:=wdSaveChanges
'Next file in folder
myFile = Dir$()
Wend
End Sub


  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Greg
 
Posts: n/a
Default Changing the author on over 100 Docs

See:
http://www.gmayor.com/installing_macro.htm
for help using the macro.

You would need to change "C:\Batch Folder" to the directory where you
group of files is located or you could simply create a directory of
that name and move your files there to process. That is what I do.

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
on new docs, i only get 9 in of vert ruler; but old docs have all james Alan Fox Microsoft Word Help 1 November 11th 05 05:46 PM
WORD docs transferred as "wordpad" docs Naomi Microsoft Word Help 1 October 21st 05 03:23 AM
Group of docs randomly changing style formatting Mike Page Layout 1 October 20th 05 04:57 PM
re Creation of master docs from exsiting docs DFM Microsoft Word Help 2 February 26th 05 04:51 PM
200 engineers in Co. All can access all docs. Muggins must ration. Sue Microsoft Word Help 1 November 24th 04 01:43 AM


All times are GMT +1. The time now is 09:14 PM.

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"