Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Joyce Joyce is offline
external usenet poster
 
Posts: 32
Default Batch Conversion Wizard in 2007?

Word 2003 had a nifty batch conversion wizard for converting a whole bunch of
docs to HTML. Is there something comparable in Word 2007? I know that you can
use "Save As" to save a single document, but I have a whole bunch to be
converted.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Batch Conversion Wizard in 2007?

You could use a macro

Sub SaveAllAsHTML()
Dim strFileName As String
Dim strDocName As String
Dim strPath As String
Dim oDoc As Document
Dim fDialog As FileDialog
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", , "List Folder Contents"
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
If Left(strPath, 1) = Chr(34) Then
strPath = Mid(strPath, 2, Len(strPath) - 2)
End If
strFileName = Dir$(strPath & "*.doc")

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

strDocName = ActiveDocument.FullName
intPos = InStrRev(strDocName, ".")
strDocName = Left(strDocName, intPos - 1)
strDocName = strDocName & ".htm"
oDoc.SaveAs FileName:=strDocName, _
FileFormat:=wdFormatHTML
oDoc.Close SaveChanges:=wdDoNotSaveChanges
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



Joyce wrote:
Word 2003 had a nifty batch conversion wizard for converting a whole
bunch of docs to HTML. Is there something comparable in Word 2007? I
know that you can use "Save As" to save a single document, but I have
a whole bunch to be converted.



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
batch conversion wizard preeto New Users 7 December 21st 06 06:21 PM
batch conversion wizard in word 2007 preeto Microsoft Word Help 0 December 20th 06 12:37 PM
batch conversion wizard feature preeto Microsoft Word Help 0 December 20th 06 08:15 AM
batch conversion wizard preeto New Users 0 December 19th 06 11:34 AM
Batch Conversion Wizard Kent Gorsuch Microsoft Word Help 0 January 12th 06 01:25 PM


All times are GMT +1. The time now is 06:35 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"