Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default Cut and Paste range

Hi All

I have data in column A that says JN or HR or CH

I want Excel to identify all data in column A and paste the data into a
different sheet

i.e All data that starts with JN in column A will be pasted into a JN sheet
and all data that starts HR will go ito a sheet called HR

Any Ideas??

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200512/1
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 156
Default Cut and Paste range

Hi
You could sort the data, then filter it to show only the rows you want, and
cut those rows to the other sheets...

after each cut operation, delete the blank rows...

HTH

Philip



"Crowbar via OfficeKB.com" wrote:

Hi All

I have data in column A that says JN or HR or CH

I want Excel to identify all data in column A and paste the data into a
different sheet

i.e All data that starts with JN in column A will be pasted into a JN sheet
and all data that starts HR will go ito a sheet called HR

Any Ideas??

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200512/1

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Cut and Paste range

Sub CopySortData()

Dim i As Integer, last As Integer, prefix As String

last = ActiveSheet.Range("A65536").End(xlUp).Row

For i = 1 To last
prefix = Left(Cells(i, 1).Value, 2)
If prefix < "" Then
Worksheets(prefix).Cells(i, 1).Value = ActiveSheet.Cells(i, 1).Value
End If
Next i
End Sub

Works for me, though I'm sure you'll want to add refinements.

--
Gordon Rainsford

London UK


"Crowbar via OfficeKB.com" <u15117@uwe wrote:

Hi All

I have data in column A that says JN or HR or CH

I want Excel to identify all data in column A and paste the data into a
different sheet

i.e All data that starts with JN in column A will be pasted into a JN sheet
and all data that starts HR will go ito a sheet called HR

Any Ideas??



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
copy range and paste into every 3rd cell of new range thomsonpa New Users to Excel 4 December 3rd 07 01:47 PM
Paste a named range to another range in Excel David Jean Excel Discussion (Misc queries) 2 April 13th 05 02:02 PM
Paste Small Range into Big Range tim Excel Programming 2 April 3rd 05 07:27 PM
Range Cut and Paste John Excel Programming 2 March 22nd 05 08:17 PM
how do i paste a range? majikman[_22_] Excel Programming 1 May 17th 04 12:56 PM


All times are GMT +1. The time now is 02:18 AM.

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

About Us

"It's about Microsoft Excel"