A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Moveing Data to another Worksheet



 
 
Thread Tools Display Modes
  #1  
Old September 8th, 2005, 03:21 PM
Alan
external usenet poster
 
Posts: n/a
Default 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  
Old September 8th, 2005, 11:26 PM
Richard Buttrey
external usenet poster
 
Posts: n/a
Default

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  
Old September 8th, 2005, 11:46 PM
Alan
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 05:28 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.