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 rows to another worksheet based on content of cell


Hi all,

Is it possible using VB to move rows which contain a certain value in
one of the columns.

For example, if column G contained success, that row would be moved to
the success worksheet.

Any help greatly appreciated.

Thanks


--
5tin@
------------------------------------------------------------------------
5tin@'s Profile: http://www.excelforum.com/member.php...o&userid=27499
View this thread: http://www.excelforum.com/showthread...hreadid=470164

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Moving rows to another worksheet based on content of cell

Yes. You would loop through the cells in column G from point A to point B,
looking for "success". If found Then EntireRow.Cut Destination:=
Worksheets("Success").Row(?). You would need to do a row count on each sheet
to set point A to B to search in and a continual row count on the Success
sheet to find next available row. The exact code depends upon other factors
you have not mentioned, ie. do you want to move remaining rows up to fill
the void made by removing a row, does the Success sheet have a header, do
you want to start with row 1 or row 2, etc.
Now you know it can be done, let us know how you want it done.

Mike F
"5tin@" wrote in message
...

Hi all,

Is it possible using VB to move rows which contain a certain value in
one of the columns.

For example, if column G contained success, that row would be moved to
the success worksheet.

Any help greatly appreciated.

Thanks


--
5tin@
------------------------------------------------------------------------
5tin@'s Profile:
http://www.excelforum.com/member.php...o&userid=27499
View this thread: http://www.excelforum.com/showthread...hreadid=470164



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Moving rows to another worksheet based on content of cell

I am trying to do something similar but I really don't know anything about
VB. I would like to reference a certain column and copy that row to another
sheet based on the content of the column. Any help would be greatly
appreciated.

"Mike Fogleman" wrote:

Yes. You would loop through the cells in column G from point A to point B,
looking for "success". If found Then EntireRow.Cut Destination:=
Worksheets("Success").Row(?). You would need to do a row count on each sheet
to set point A to B to search in and a continual row count on the Success
sheet to find next available row. The exact code depends upon other factors
you have not mentioned, ie. do you want to move remaining rows up to fill
the void made by removing a row, does the Success sheet have a header, do
you want to start with row 1 or row 2, etc.
Now you know it can be done, let us know how you want it done.

Mike F
"5tin@" wrote in message
...

Hi all,

Is it possible using VB to move rows which contain a certain value in
one of the columns.

For example, if column G contained success, that row would be moved to
the success worksheet.

Any help greatly appreciated.

Thanks


--
5tin@
------------------------------------------------------------------------
5tin@'s Profile:
http://www.excelforum.com/member.php...o&userid=27499
View this thread: http://www.excelforum.com/showthread...hreadid=470164




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 rows based on cell content billinr Excel Discussion (Misc queries) 2 February 14th 07 08:17 PM
Hide/Delete entire rows based in the content of one cell Clueless Excel Discussion (Misc queries) 2 October 3rd 05 02:40 PM
Create a report with selected rows based on the content in a cell ThirdTim New Users to Excel 1 May 5th 05 05:18 PM
Hiding rows based on cell content alistair01[_4_] Excel Programming 2 February 3rd 04 01:58 PM
Moving a row based on content of a cell to a diff worksheet Bruccce Excel Programming 3 July 31st 03 05:02 AM


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