View Full Version : How to copy data to non active worksheet????


vid
04-23-2010, 12:58 AM
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...

chergh
04-23-2010, 01:04 AM
Worksheets("sheet3").paste worksheets("sheet3").Range("B9")

vid
04-23-2010, 01:20 AM
Umm nope.. still the same thing happening!! any other suggestion??!!

chergh
04-23-2010, 01:30 AM
Is the sheetname correct?

chergh
04-23-2010, 01:33 AM
Actually now I read more closely you just want to turn screen updating off.

use:


Application.ScreenUpdating = False

your code

Application.ScreenUpdating = True

vid
04-25-2010, 04:47 PM
Perfect!

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