πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: microsoft.public.vb.bugs
Article #51

"Access denied" while opening a Winword file

#51
From: Anja Odenthal
Date: Tue, 12 May 1998 00:00
40 lines
2361 bytes
Hello out there,

a friend asked me to post this question for him:

--------------------------------------------------------------
last time I tried out a sample code which I have seen in a
Visual Basic book. It just starts a Word-session opens a new file,
writes some Data and then saves the file. Its exactly this:

    Dim myWord As New Word.Application
    myWord.Documents.Add
    myWord.Selection.Font.Size = 20
    myWord.Selection.TypeText "Hello World"
    myWord.ActiveDocument.SaveAs "c:\temp\newdoc.doc"
    myWord.Quit

The program run on some machines. But I have 2 machines on which I
get the error message:

 "access denied"

when "myWord.Documents.Add" is to be executed.
The same phenomenon appears with excel.

WhatοΏ½s wrong with my machine??? Can somebody help me please.
-------------------------------------------------------------

Please mail me your answer(s) - I don't read this newsgroups regularly.

 Thanks in advance!

Anja

---------------------------------------------------
Dipl. Inf-Wiss. Anja Odenthal
Universitaet Konstanz,  Fachbereich Informationswissenschaft
Tel.: (07531) 88-2870   WWW:   http://www.inf-wiss.uni-konstanz.de
Fax:  (07531) 88-2601   email: Anja.Odenthal@inf-wiss.uni-konstanz.de
---------------------------------------------------------------------------
Technical Details
Message-ID: <3558631B.8F713042@inf-wiss.uni-konstanz.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 105c2e,a1c38a9ded3e0074,start
X-Google-Attributes: gid105c2e,public
X-Google-Thread: fde1d,a1c38a9ded3e0074,start
X-Google-Attributes: gidfde1d,public
X-Google-Thread: f7a67,a1c38a9ded3e0074,start
X-Google-Attributes: gidf7a67,public
X-Google-Thread: 107824,a1c38a9ded3e0074,start
X-Google-Attributes: gid107824,public
X-Google-Thread: 10644a,a1c38a9ded3e0074,start
X-Google-Attributes: gid10644a,public
From: Anja Odenthal <Anja.Odenthal@inf-wiss.uni-konstanz.de>
Subject: "Access denied" while opening a Winword file
Date: 1998/05/12
Message-ID: <3558631B.8F713042@inf-wiss.uni-konstanz.de>
X-Deja-AN: 352560879
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=iso-8859-1
Organization: University of Constance, Germany
MIME-Version: 1.0
Reply-To: Anja.Odenthal@inf-wiss.uni-konstanz.de
Newsgroups: microsoft.public.vb.bugs,microsoft.public.vb.ole,microsoft.public.de.vb,fj.lang.visualbasic,fj.comp.lang.visualbasic