• Privacywetgeving
    Het is bij Helpmij.nl niet toegestaan om persoonsgegevens in een voorbeeld te plaatsen. Alle voorbeelden die persoonsgegevens bevatten zullen zonder opgaaf van reden verwijderd worden. In de vraag zal specifiek vermeld moeten worden dat het om fictieve namen gaat.

Compatiliteitsprobleem Excel?

Status
Niet open voor verdere reacties.
Ik krijg zo langzamerhand het idee dat Outlook in deze de boosdoener is. Nog even in het kort het probleem:

Eerder vermelde code wordt gebruikt om de ingevulde uren van de afgelopen week te sorteren en vervolgens het spreadsheet te versturen naar een aantal ontvangers via de e-mail. Vervolgens wordt het weeknummer aangepast, en het invulblad wordt weer blanco gemaakt, zodat de uren van de komende week er weer op ingevuld kunnen worden. Tot zover gaat alles goed. Wanneer ik dan echter het bestand wil opslaan, of het nu middels de macro of handmatig is, krijg ik de volgende foutmelding:

Excel
Dit programma heeft een ongeldige bewerking uitgevoerd en wordt afgesloten
Neem contact op met de leverancier als het probleem zich blijft voordoen.

bij de Details kan ik dan het volgende zien:

Excel heeft een fout met betrekking tot een ongeldige pagina veroorzaakt in module VBE6.DLL op 0167:6512BE2D

Registers:
bla, bla, nou ja enzovoorts.

Nou goed, Excel wordt dan dus afgesloten, zonder het bestand op te slaan natuurlijk. Als ik dan in Taakbeheer kijk, staat Excel er nog steeds tussen. Als ik dan er voor kies om Excel af te sluiten in Taakbeheer, krijg ik de volgende melding:

Dit programma reageert niet. Het wacht mogelijk op een reactie, is bezig of is gestopt.

- Klik op Annuleren als u dit bericht wilt negeren en terug wilt keren naar Windows
- Klik op Taak beëindigen als u dit programma onmiddelijk wilt afsluiten. Niet-opgeslagen gegevens in dit programma gaan verloren.


Nou, dit is een heel verhaal met wellicht hier en daar wat overbodige informatie, maar ik wil het verhaal zo compleet mogelijk hebben.

Verder heb ik nog de volgende gegevens:

De PC, waarop het programma draait, heeft als besturingssysteem W'98 SE, met Excel 2000, Outlook 2000 en Word 2000 geinstalleerd. Het e-mail-gebeuren gaat via Microsoft Exchange Server via het lokale netwerk.

Ik heb nog eens wat gezocht op het internet, maar kan, tot nu toe, nog niet de exacte foutmelding terugvinden. Wat er het meest op lijkt, is dat Outlook het bestand niet vrij geeft aan Excel, na het verzenden. Kan het soms een instelling in Outlook zijn, die de boel in de soep laat lopen?

gr. René
 
Nou heb ik weinig (lees geen ;) ) verstand van VBA, maar wat ik tegenkom wat betrekking heeft op de foutmelding en op de situatie, is het volgende:
-Verkeerde versie van VBE6.DLL
-onvoldoende rechten op de exchange server

oplossing voor de eerste:

For a corrupted, missing, or wrong version of the Vbe6.dll file, follow these steps.

NOTE: You need your Office CD-ROM to complete this task.
Quit all currently open programs.
Start an MS-DOS prompt in a window by doing one of the following:
Microsoft Windows 95 or Windows 98:
Click Start, point to Programs, and then click MS-DOS Prompt.

Microsoft Windows Millennium Edition (Me):
Click Start, point to Programs, point to Accessories, and then click MS-DOS Prompt.

Microsoft Windows NT 4.0:
Click Start, point to Programs, and then click Command Prompt.

Microsoft Windows 2000 or Microsoft Windows XP:
Click Start, point to Programs, point to Accessories, and then click Command Prompt.

To change the directory to the location of the Vbe6.dll file, type one of the following (including the quotation marks), and then press ENTER:
CD "C:\Program Files\Common Files\Microsoft Shared\Vba\Vba6"

-or-
CD progra~1\Common~1\Micros~1\Vba\Vba6

NOTE: This is the default directory for the Vbe6.dll file. If you installed Microsoft Office into another drive or directory, you must type its path.
To unregister the Vbe6.dll file, type the following.

In Windows 95, Windows 98, or Windows Me, type:
C:\Windows\System\REGSVR32 /U VBE6.DLL

In Windows NT 4.0, Windows 2000, or Windows XP, type:
REGSVR32 /U VBE6.DLL

-or-
C:\Winnt\System32\REGSVR32 /U VBE6.DLL

NOTE: This is the default directory for the Windows System directory. If you installed Windows into another directory, you must type its path.
In the MS-DOS prompt window, rename Vbe.dll to Vbe.old by typing the following and then pressing ENTER:
rename vbe6.dll vbe6.old

Quit the MS-DOS prompt window. To do this, do one of the following:
Type Exit at the command prompt, and then press ENTER. -or-


Click Close (the X in the upper-right corner of the window).
Start the Microsoft Office application.
On the Tools menu, point to Macro, and then click Macros.

The Windows Installer detects that the Vbe6.dll file is missing on the system, installs the file from the Office CD, and registers it again.


En voor de exchange rechten:

Method 4: Check Network Permissions
The Visual Basic Editor creates a folder in the Temp directory to store files. If the Temp directory is being accessed via a network share, the network permissions for this folder must have Create permissions. See your network administrator for information about setting permissions.
 
Laatst bewerkt:
YES!!!!

Nou, ik ben weer helemaal happy:D Zo zie je maar weer, het goeie antwoord komt soms uit een onverwachte hoek. Ik heb de aanwijzingen opgevolgd, en het programma draait weer als een tierelier! :thumb:

Maestro, je doet je naam eer aan!
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan