Running Code

  • Thread starter Thread starter Wavequation
  • Start date Start date
W

Wavequation

I would like to run some code, but I don't necessarily need it to be
associated with a form. Is there a way to run code from the VBA editor
window?
Thanks!
 
What I really want to do is open up some recordsets and manipulate the data
in them. Can I run entire blocks of code without associating it with an
event of some sort?
 
Not really.

What I do is create a sub to do what I want in a stand-alone module, then
either run the sub from the Immediate Window, or else single-step through
it.
 
1. Put the code in a stand-alone module

2. Compile it (Debug->Compile).

3. Position the cursor anywhere inside the code, and hit F5(Run).
 
Back
Top