Let's say you have two Excel files (workbooks) open.
In the first workbook, you have some VBA code.
You have the second workbook selected.

The Workbook that you have the code STORED in, is ThisWorkbook
The one you have selected is the Active workbook.

so, if you were to use:
Thisworkbook.Sheets(1).Cells(1,1).value = 
Activeworkbook.Sheets(2).Cells(1,2).value

You would be copying the contents of the second workbook, second sheet, Cell B1
to the first workbook, first sheet, Cell A1
WITHOUT SELECTING THE WORKBOOK, SHEET or CELL
and without using the Clipboard, and there is no screen "flicker"
It's VERY fast.

Paul




________________________________
From: Shiv Goel <shivyn...@gmail.com>
To: excel-macros@googlegroups.com
Sent: Tue, February 9, 2010 12:33:01 PM
Subject: $$Excel-Macros$$ Help


What is the difference in ActiveWorkbook  property or ThisWorkbook property

-- 
Shiv Goel
8NBYN060
ICFAI National College,YNR
9416275776
-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com

 
To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain @ jainayus...@gmail.com
<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!
 
We reach over 6,700 subscribers worldwide and receive many nice notes about the 
learning and support from the group.Let friends and co-workers know they can 
subscribe to group at http://groups.google.com/group/excel-macros/subscribe

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com
<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,700 subscribers worldwide and receive many nice notes about the 
learning and support from the group.Let friends and co-workers know they can 
subscribe to group at http://groups.google.com/group/excel-macros/subscribe

Reply via email to