Why Does Macros Dialog Pop-Up When I Try To Run Code In VB Editor?

Joined
Jan 6, 2012
Messages
4
Reaction score
0
I'm trying to see if the following frustratingly simple code runs to open Outlook:

Private Sub A1S1_Form_Re_send_Welcome_E_Mail_Only_Button_Click()
Dim objOutlook As Outlook.Application
Set objOutlook = CreateObject("Outlook.Application")
End Sub

But when I hit the "Run" arrow button in the toolbar, the "Macros" dialog box pops up (with no entries). Why is this happening and should I be entering
something in it?

The button that this code is for is an On-Click "Event Procedure" event. I thought that in 2007, that was code and not a macro.

Why can't I do a simple step-compile in the editor, Microsoft?! :wall:

Much thanks ahead of time for any advice,
Frank
Windows XP, Access 2007, .accdb file
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top