Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Excel meldungen bei einem aufruf aus access unterdrücken

Empfohlene Antworten

Veröffentlicht

hiho,

ich hoff ihr könnt mir helfen.

Ich will aus Access excel Dateien öffnen. Das geht auch sehr gut wenn ich allerdings eine excel datei öffne die schon ein anderer geöffnet hat bekomme ich die meldung dass das so ist ;)

Weis jemand wie ich diese Meldung unterdrücken kann??

THX

Hi!

Vielleicht mit dem Befehl Docmd.SetWarnings True / False

Damit kann man Fehlermeldungen unterdrücken. Du musst aber auf jeden Fall am Ende Deiner Prozedur das ganze wieder auf True setzen, sonst werden die Fehlermeldungen immer unterdrückt.

Also zB. so:

----------------------------------

Private Sub Excel()

Docmd.SetWarnings False

'Dein Code

Docmd.SetWarnings True

End Sub

----------------------------------

Gruss

THX aber so funktionierts net.

Er gibt immer noch die meldung aus das die Datei geöffnet ist und fragt ob sie schreibgeschützt geöffnet werden soll.

Noch andere ideen?

GreEetz

Moin !

Das SetWarnings bezieht sich nur auf Access Meldungen, bei Excel heisst das Teil DisplayAlerts.

Beispiel:

Dim obj_EX As Excel.Application

Set obj_EX = GetObject(, "Excel.Application")

obj_EX.DisplayAlerts = False

obj_EX.Workbooks.Open FileName:="bla.xls"

...

Er öffnet das Teil dann automatisch schreibgeschützt wenn ein anderer es schon bearbeitet. Musst nur dran denken es hinterher auch wieder auf True zu setzen.

Gruß

Christian

------------------------------------------------------------

"All power corrupts. Absolute Power is kinda neat though..."

"50.000 gold a year in child care and they call it a CULT ?!?"

- Kel'Thuzad, Archlich

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.