WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Batch convert Works using Word 2007

 
   Home -> Office -> Conversions RSS
Next:  How to create a file association  
Author Message
Jay

External


Since: Jun 23, 2008
Posts: 1



(Msg. 1) Posted: Mon Jun 23, 2008 11:37 am
Post subject: Batch convert Works using Word 2007
Archived from groups: microsoft>public>word>conversions (more info?)

I've asked experts and looked all over the web. I want to convert a
batch of Works wps files to Word 97-2003 files. I repaired a computer that
had been using Works and they lost the CD to install Works and now have a
program that will read Word but not Works.

I can do it one at a time but not 100 at once.
Back to top
Login to vote
Graham Mayor

External


Since: Jul 04, 2006
Posts: 8120



(Msg. 2) Posted: Tue Jun 24, 2008 3:03 am
Post subject: Re: Batch convert Works using Word 2007 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If you have the wps converter installed, as appears to be the case, the
following macro will convert all the WPS format files in a selected folder
to Word 97-2003 format.


Sub Batch_Save_WPS_as_DOC97()
Dim bConv As Boolean
Dim strFileName As String
Dim strDocName As String
Dim strPath As String
Dim oDoc As Document
Dim Response As Long
Dim fDialog As FileDialog

bConv = Options.ConfirmConversions
Options.ConfirmConversions = False
Set fDialog = Application.FileDialog(msoFileDialogFolderPicker)
With fDialog
.Title = "Select folder and click OK"
.AllowMultiSelect = False
.InitialView = msoFileDialogViewList
If .Show <> -1 Then
MsgBox "Cancelled By User", , "Save all as DOC"
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 & "*.wps")

While Len(strFileName) <> 0
Set oDoc = Documents.Open(strPath & strFileName)

strDocName = ActiveDocument.FullName
intPos = InStrRev(strDocName, ".")
strDocName = Left(strDocName, intPos - 1)
strDocName = strDocName & ".doc"
oDoc.SaveAs FileName:=strDocName, _
FileFormat:=wdFormatDocument97
oDoc.Close SaveChanges:=wdDoNotSaveChanges
strFileName = Dir$()
Wend
Options.ConfirmConversions = bConv
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
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


Jay wrote:
> I've asked experts and looked all over the web. I want to convert
> a batch of Works wps files to Word 97-2003 files. I repaired a
> computer that had been using Works and they lost the CD to install
> Works and now have a program that will read Word but not Works.
>
> I can do it one at a time but not 100 at once.
Back to top
Login to vote
Braveheart

External


Since: Jul 10, 2007
Posts: 1



(Msg. 3) Posted: Tue Sep 23, 2008 10:55 am
Post subject: Re: Batch convert Works using Word 2007 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for the macro - it worked great!

"Graham Mayor" wrote:

> If you have the wps converter installed, as appears to be the case, the
> following macro will convert all the WPS format files in a selected folder
> to Word 97-2003 format.
>
>
> Sub Batch_Save_WPS_as_DOC97()
> Dim bConv As Boolean
> Dim strFileName As String
> Dim strDocName As String
> Dim strPath As String
> Dim oDoc As Document
> Dim Response As Long
> Dim fDialog As FileDialog
>
> bConv = Options.ConfirmConversions
> Options.ConfirmConversions = False
> Set fDialog = Application.FileDialog(msoFileDialogFolderPicker)
> With fDialog
> .Title = "Select folder and click OK"
> .AllowMultiSelect = False
> .InitialView = msoFileDialogViewList
> If .Show <> -1 Then
> MsgBox "Cancelled By User", , "Save all as DOC"
> 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 & "*.wps")
>
> While Len(strFileName) <> 0
> Set oDoc = Documents.Open(strPath & strFileName)
>
> strDocName = ActiveDocument.FullName
> intPos = InStrRev(strDocName, ".")
> strDocName = Left(strDocName, intPos - 1)
> strDocName = strDocName & ".doc"
> oDoc.SaveAs FileName:=strDocName, _
> FileFormat:=wdFormatDocument97
> oDoc.Close SaveChanges:=wdDoNotSaveChanges
> strFileName = Dir$()
> Wend
> Options.ConfirmConversions = bConv
> 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
> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>
>
> Jay wrote:
> > I've asked experts and looked all over the web. I want to convert
> > a batch of Works wps files to Word 97-2003 files. I repaired a
> > computer that had been using Works and they lost the CD to install
> > Works and now have a program that will read Word but not Works.
> >
> > I can do it one at a time but not 100 at once.
>
>
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Conversions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET