#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Rows and Sheets

Is it possible to create something in Excel that will take information on one
row and move that information to another row on another sheet in the same
workbook?

I have a workbook for sales leads that I would like to have the option to
move a dead lead off the active sheet onto a completely different sheet. It
would clear the row of the now dead lead and continue to the list on the
other sheet as more and more leads become inactive.

Is that even possible?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Rows and Sheets


assuming you have data in column A and that your "Dead" marker is in
column L, this code will move all rows that have the word "Dead" in
column L to sheet 2 next available row and then delete the original row
and move the data up!

Sub Move_Dead()
Dim Rng As Range, MyCell As Range
Set Rng = ActiveSheet.Range("A1:A" & Range("A" &
Rows.Count).End(xlUp).Row)
For Each MyCell In Rng
If MyCell.Offset(0, 11) = "Dead" Then
MyCell.EntireRow.Copy Destination:= _
Sheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
MyCell.EntireRow.Delete shift:=xlUp
End If
Next MyCell
End Sub


--
The Code Cage Team

Regards,
The Code Cage Team
www.thecodecage.com
------------------------------------------------------------------------
The Code Cage Team's Profile: http://www.thecodecage.com/forumz/member.php?userid=2
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=23451

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
how to compare two sheets with repeating rows Alawi Excel Discussion (Misc queries) 1 June 14th 08 01:42 PM
Adding rows to tables in 2 different sheets birdpants Excel Discussion (Misc queries) 1 August 7th 07 11:40 AM
2 sheets 2 rows grab 1 karatehero Excel Worksheet Functions 2 November 10th 06 05:05 PM
Rows to Named Sheets Steved Excel Worksheet Functions 2 August 8th 06 10:44 AM
concatenating rows from different sheets ExcelWolfie Excel Worksheet Functions 1 January 27th 06 05:31 PM


All times are GMT +1. The time now is 03:23 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"