Results 1 to 2 of 2

Thread: Documents.Open

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Slovenia
    Posts
    40

    Documents.Open

    In my VBA word macro I want to open ASCII file which includes CE fonts.
    I tried this:

    Dim str As Document
    Set str = Documents.Open("ce_text.txt", _ Encoding:=msoEncodingCentralEuropean)

    It works fine in Word 2000, but it fails in Word 97 (parameter Encoding). I need a solution which works in word 2k and word 97.
    Can you please help me?

    Tomaz

  2. #2
    Fanatic Member WorkHorse's Avatar
    Join Date
    Jul 2002
    Location
    Where you live.
    Posts
    591
    I don't work with CE fonts, but I think this is a Word problem and not really a code problem. If the error is on the Encoding parameter, it is probably that Word 97 doesn't support the constant. Try setting up Word so that is excepts CE fonts. I found this on a quick Google search, but I don't know if it helps you much. http://studweb.euv-frankfurt-o.de/twardoch/f/en/win95/

Posting Permissions

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



Click Here to Expand Forum to Full Width