Informationen und Beispiele zum Thema CommandButton | |
---|---|
![]() |
CommandButton-Seite mit Beispielarbeitsmappe aufrufen |
![]() |
Betrifft: Anfänger bittet um Eure MAKRO Hilfe
von: Michael
Geschrieben am: 08.09.2004 19:00:09
Hallo liebes Forum,
leider bin ich ein absoluter Makroanfänger (nur Recorder) und mit der Hilfefunktion komme ich leider nicht weiter.
Bitte um Eure Hilfe wie mein Makro aussehen muß wenn ich bei Ausführung die unten genannte ACCESS Datei öffnen will.
D:\PROGRAMME\ACCESS\DMF_Kalkulation_V172.mdb
1.000 Dank
Michael
![]() ![]() |
Option Explicit
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, _
ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, _
ByVal lpnShowCmd As Long) As Long
Public Sub DB_oeffnen()
ShellExecute 0, "Open", "DMF_Kalkulation_V172.mdb", "", "D:\PROGRAMME\ACCESS\", 3
End Sub
![]() ![]() |
Private Sub CommandButton6_Click() Option Explicit Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, _ ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, _ ByVal lpnShowCmd As Long) As Long Public Sub DB_oeffnen() ShellExecute 0, "Open", "DMF_Kalkulation_V172.mdb", "", "D:\PROGRAMME\ACCESS\", 3 End Sub
![]() ![]() |
Option Explicit
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, _
ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, _
ByVal lpnShowCmd As Long) As Long
Private Sub CommandButton6_Click()
ShellExecute 0, "Open", "DMF_Kalkulation_V172.mdb", "", "D:\PROGRAMME\ACCESS\", 3
End Sub
![]() |