Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Moving records to a new sheet


I have a workbook with one worksheet in it. In this one (Master)
worksheet there are a lot of records (rows). In each row there is
either a 1, 2, 3, 4, etc... and I want to copy all the 1s to a new
sheet, 2s to a new sheet, etc...

This should be a simple task, but I'm confused by it.

Some of the tabs will have multiple numbers in them. For example 4, 5,
9 are all in the same tab. I thought it would be best to use a Select
Case statement for this, but I'm open to suggestions.

Any and All help is much appreciated,

DejaVu


--
DejaVu
------------------------------------------------------------------------
DejaVu's Profile: http://www.excelforum.com/member.php...o&userid=22629
View this thread: http://www.excelforum.com/showthread...hreadid=492025

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Moving records to a new sheet

This should get you started (Ron de Bruin's site)
http://www.rondebruin.nl/copy5.htm

--
Regards,
Tom Ogilvy

"DejaVu" wrote in
message ...

I have a workbook with one worksheet in it. In this one (Master)
worksheet there are a lot of records (rows). In each row there is
either a 1, 2, 3, 4, etc... and I want to copy all the 1s to a new
sheet, 2s to a new sheet, etc...

This should be a simple task, but I'm confused by it.

Some of the tabs will have multiple numbers in them. For example 4, 5,
9 are all in the same tab. I thought it would be best to use a Select
Case statement for this, but I'm open to suggestions.

Any and All help is much appreciated,

DejaVu


--
DejaVu
------------------------------------------------------------------------
DejaVu's Profile:

http://www.excelforum.com/member.php...o&userid=22629
View this thread: http://www.excelforum.com/showthread...hreadid=492025



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Moving records to a new sheet


Thanks for the reference Tom. I went to the website you suggested and
tried some of his code.
The Sub that was closest to what I was needing (or so I think) is Sub
Copy_With_AdvancedFilter_To_Worksheets.

The only problem is that I want to copy the entire row, not just one
cell in a given range. Here is the snippet of code that I think needs
to be changed to copy the entire row, but I'm not sure.

' rng.AdvancedFilter Action:=xlFilterCopy, _
' CriteriaRange:=.Range("IU1:IU2"), _
' CopyToRange:=WSNew.Range("A1"), _
' Unique:=False

TIA,

DejaVu


--
DejaVu
------------------------------------------------------------------------
DejaVu's Profile: http://www.excelforum.com/member.php...o&userid=22629
View this thread: http://www.excelforum.com/showthread...hreadid=492025

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
formula for moving information from one sheet to another sheet Puzzled Excel Discussion (Misc queries) 4 June 6th 10 05:58 AM
moving informatiion from one sheet to a total sheet john Excel Discussion (Misc queries) 2 January 31st 08 10:17 PM
Automatically add records from a new sheet to master sheet [email protected] Excel Discussion (Misc queries) 1 January 2nd 07 08:24 PM
moving records from one sheet to other knight New Users to Excel 1 June 30th 06 02:26 AM
Moving records from a sheet to another LoveCandle[_2_] Excel Programming 2 November 8th 05 06:56 AM


All times are GMT +1. The time now is 02:43 PM.

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"