How to copy data to non active worksheet????

vid

Registered User.
Local time
Today, 05:22
Joined
Feb 4, 2010
Messages
62
Hi :)

I have a db with 2 worksheets (which I am attaching). It has a simple macro based on a filter placed behind the "Submit" button. However when you click the button, you'll see that "sheet2" opens and closes very quickly. Even though you can't see it this looks quite bad.

I want to make it more professional looking so I want that when I click the submit button the whole procedure happens but without opening and closing "sheet2". Hopefully you can understand what I'm saying.

I am quite new to Macros. However, from my understanding, if I use Worksheets("sheet3").Range("B9").Paste instead of the "Activesheet" method, this problem should get solved. Tried a lot of different permutations and combinations but it doesn't work!!!

Please please please please help!!!!! spent hours on this problem but can't seem to figure it out...
 

Attachments

Code:
Worksheets("sheet3").paste worksheets("sheet3").Range("B9")
 
Umm nope.. still the same thing happening!! any other suggestion??!!
 
Actually now I read more closely you just want to turn screen updating off.

use:

Code:
Application.ScreenUpdating = False

your code

Application.ScreenUpdating = True
 
Perfect!

Thanks a ton.. You're a lifesaver :D
 

Users who are viewing this thread

Back
Top Bottom