Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stop autoexec

Status
Not open for further replies.

rojdhi

Programmer
Jul 29, 2002
12
0
0
FR
Hi.
I have a macro that works at the opening of my report.

How open the report without executing the macro...?? (just like Shift + open with Access...)

Thx.
 
Try this:
[tt]
Private Declare Function GetAsyncKeyState _
Lib "USER32" (ByVal vVey As Long) As Integer

Private Sub
Document_Open()
If GetAsyncKeyState(vbKeyShift) < 0 Then Exit Sub
MsgBox &quot;Hello!&quot;
End Sub
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top