Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access Forms > Recorded Macro ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 44631 of 46475
Post > Topic >>

Recorded Macro Works, Code Doesn't

by =?Utf-8?B?SmF5?= <Jay@[EMAIL PROTECTED] > Aug 6, 2008 at 11:37 AM

Hello all,

This is an question that I can't solve, but it's not a terribly im****tant 
issue.

I've been tasked to rewrite some macros that various users have recorded. 

It's fairly straightforward and I don't have any problems.  But there's
two 
lines of code that are all over the macro, and I can't figure out how they

were recorded.  If I remove those two lines and try to run them 
independently, it crashes.  I'm wondering if I'm missing something,
thought 
I'd throw it out there.  Again, this is just to satify my curiousity.

The lines are:
ActiveWindow.Visible = False
ActiveWindow.Activate

These two lines appear maybe 5 times per macro.  But the user doesn't know

what they did, and I haven't been able to duplictate it.

I can duplicate each line, but not together (in that order).  I have to
hide 
the sheet to get the first line, but activate doesn't work with a hidden 
sheet.

Anyone smarter know what's going on?

Thanks,
Jay
-- 
Disregard, this is so I can find my post later.
***postedbyJay***
 




 3 Posts in Topic:
Recorded Macro Works, Code Doesn't
=?Utf-8?B?SmF5?= <Jay@  2008-08-06 11:37:01 
Re: Recorded Macro Works, Code Doesn't
"Linq Adams via Acce  2008-08-06 19:06:13 
RE: Recorded Macro Works, Code Doesn't
=?Utf-8?B?SmF5?= <Jay@  2008-08-06 12:10:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 20:41:48 CST 2008.