If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Moveing Data to another Worksheet
I hope I put this in the correct place.
Let's say I have a workbook that contains 2 Worksheets named "Worksheet 1" and "Worksheet 2" In "Worksheet 1" I have the following information. In cell A1 = 1, B1 = 2, C1 = 3 now based on this information anytime that cell B1 = 2 I want to copy that entire row to "Worksheet 2" First off is this possbile, second if it is how? Thanks, Alan |
#2
|
|||
|
|||
On Thu, 8 Sep 2005 07:21:03 -0700, "Alan"
wrote: I hope I put this in the correct place. Let's say I have a workbook that contains 2 Worksheets named "Worksheet 1" and "Worksheet 2" In "Worksheet 1" I have the following information. In cell A1 = 1, B1 = 2, C1 = 3 now based on this information anytime that cell B1 = 2 I want to copy that entire row to "Worksheet 2" First off is this possbile, second if it is how? Thanks, Alan There is no worksheet function which will achieve this, you can only do it with a VBA macro When you say anytime cell B1 = 2, is this a cell which is changed from time to time? If so you could use the worksheet change event of VBA with cell B1 as the target range. In the Change Event code you would write something like: Worksheets("Worksheet 1").range("B1").entirerow.copy destination:= Worksheets("Worksheet 2).range("your required range") Untestested but that's the general principle. Rgds __ Richard Buttrey Grappenhall, Cheshire, UK __________________________ |
#3
|
|||
|
|||
Thank you Very much!!!! That did help!
"Richard Buttrey" wrote: On Thu, 8 Sep 2005 07:21:03 -0700, "Alan" wrote: I hope I put this in the correct place. Let's say I have a workbook that contains 2 Worksheets named "Worksheet 1" and "Worksheet 2" In "Worksheet 1" I have the following information. In cell A1 = 1, B1 = 2, C1 = 3 now based on this information anytime that cell B1 = 2 I want to copy that entire row to "Worksheet 2" First off is this possbile, second if it is how? Thanks, Alan There is no worksheet function which will achieve this, you can only do it with a VBA macro When you say anytime cell B1 = 2, is this a cell which is changed from time to time? If so you could use the worksheet change event of VBA with cell B1 as the target range. In the Change Event code you would write something like: Worksheets("Worksheet 1").range("B1").entirerow.copy destination:= Worksheets("Worksheet 2).range("your required range") Untestested but that's the general principle. Rgds __ Richard Buttrey Grappenhall, Cheshire, UK __________________________ |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help PLEASE! Not sure what answer is: Match? Index? Other? | baz | Worksheet Functions | 7 | September 3rd, 2005 03:47 PM |
Sort pages? | David | General Discussion | 15 | May 13th, 2005 11:33 PM |
How do I collect data from an interactive web worksheet and impor. | worksheetmom | General Discussion | 3 | February 20th, 2005 12:38 AM |
multiple docs, one data source | kp | Mailmerge | 12 | January 31st, 2005 04:41 PM |
Format on data to import to Access tables? (I need your advice) | Niklas Östergren | General Discussion | 5 | December 13th, 2004 02:54 PM |