Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Alan
 
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   Report Post  
Richard Buttrey
 
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   Report Post  
Alan
 
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
__________________________

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing a list to a Calendar worksheet. PatrickL Excel Worksheet Functions 0 August 25th 05 04:21 PM
Saving data in a worksheet within a workbook Homeuser Excel Discussion (Misc queries) 2 August 21st 05 10:49 PM
Inserting Filtered RC cell information into other worksheets Dennis Excel Discussion (Misc queries) 10 July 30th 05 01:54 AM
Macro to search for and display data in another worksheet Mark H Excel Worksheet Functions 0 June 14th 05 12:40 PM
URGENT Please... new worksheet with copied formats but no data. DarrellK Excel Worksheet Functions 2 December 1st 04 07:11 PM


All times are GMT +1. The time now is 06:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"