Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Dec 2004
    Location
    Stoney Creek, Ontario
    Posts
    196
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Macro help please (2003)

    I have the following line of code in my macro that is supposed to take the current file and change it from a .doc to an html file:

    ActiveDocument.SaveAs FileName:="ZataTest" & Trim(strTitle) & ".htm", FileFormat:=wdFormatDocument

    It does work except that it is changing the file into a single file web page instead of a web page. Is there a way to do this?

    Thanks!

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Macro help please (2003)

    Try

    ..., FileFormat:=wdFormatHTML

    or

    ..., FileFormat:=wdFormatFilteredHTML

  3. #3
    2 Star Lounger
    Join Date
    Dec 2004
    Location
    Stoney Creek, Ontario
    Posts
    196
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Macro help please (2003)

    Thank you so much Hans. I used the first one and it worked perfectly! I'm still learning...!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •