Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Web Authoring / July 2003

Tip: Looking for answers? Try searching our database.

Word - Macros - One runs... save as HTML dialog problem... another macro runs

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul H - 01 Jul 2003 13:28 GMT
There are three stages to what I am trying to do:Stage 1: A macro runs to
format the text of a Word document, it searches/replaces/sets fonts/styles
etc

Stage 2: "Save As HTML" (on File Menu) - i.e. Convert .doc file to .htm
fileStage 3: A macro runs to do some work (search/replace etc) on the HTML
source generated by Word and save htm againStage 2 is where I am stuck! It
is important for speed that we can select the path and filename for the
resulting .htm file so I want to do:

Dialogs(wdDialogFileSaveAs).Display (or .show) but for speed I want to set
the file format ("Save As Type") to "HTML Document" so we only have to enter
name and select the path in the dialog window
After we have entered the file name/path I want to continue stage 3
processes on the .htm file

Any ideas?The OS are two: Win NT and Win XP.  The Versions of Word are two:
97 & 2000.  The macros are in a global template in a shared network
location.My three colleagues and I use Outlook to receive Word files to go
on our intranet and we use Dreamweaver to apply templates and publish them,
we are always short of time when the work arrives so any help appreciated

Thanks in advance
Paul
Doug Robbins - Word MVP - 01 Jul 2003 22:11 GMT
Hi Paul,

You may be able to use the information in the article ?How to allow the user
to browse to and select a folder? at:

http://www.mvps.org/word/FAQs/MacrosVBA/BrowsDialog.htm

Please respond to the newsgroups for the benefit of others who may be
interested.

Hope this helps
Doug Robbins - Word MVP
> There are three stages to what I am trying to do:Stage 1: A macro runs to
> format the text of a Word document, it searches/replaces/sets fonts/styles
[quoted text clipped - 20 lines]
> Thanks in advance
> Paul

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.