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 a row to new work sheet/book if order=yes

Please help,

I'm trying to analyse what work/jobs are going on per month. I'm no
very accustomed to excel so go easy.
I have set up a number of columns containing job no, date, job=yes/no
cost, sell, profit etc.

How can I set up the spread sheet to copy a row to a separate printabl
area, sheet or workbook when a cell value satisfies an argument. I wan
to use order=yes/no.

Any help will be greatly appreciated.

Many thanks

E

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Moving a row to new work sheet/book if order=yes

right click on the sheet tab and select View code. Put in code like this

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim rng As Range
If target.count 1 then exit sub
if target.column = 3 then ' column C job = yes/no
if lcase(target.value) = "yes" then
set rng = Worksheets("sheet2"").Cells(rows.count,1).End(xlup )(2)
target.entirerow.copy Destination:=rng
End if
end if
End Sub

this assumes you will edit the cell in column C and change the value to yes

change sheet2 to the sheet name where you want the data copied

--
Regards,
Tom Ogilvy


"eddy f " wrote in message
...
Please help,

I'm trying to analyse what work/jobs are going on per month. I'm not
very accustomed to excel so go easy.
I have set up a number of columns containing job no, date, job=yes/no,
cost, sell, profit etc.

How can I set up the spread sheet to copy a row to a separate printable
area, sheet or workbook when a cell value satisfies an argument. I want
to use order=yes/no.

Any help will be greatly appreciated.

Many thanks

Ed


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Moving a row to new work sheet/book if order=yes

Thnaks very much for the reply and it works great.

I've just been playing around with filters and pivot tables, as i
happens i can do just what i need to with these.

But thanks for the info and your time.

regards

E

--
Message posted from http://www.ExcelForum.com

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
Populate order sheet with data from work sheet Veronica Johnson Excel Worksheet Functions 4 January 22nd 08 03:29 AM
Excel work Book Order Wills Excel Worksheet Functions 1 July 6th 07 03:43 PM
How do you keep Headings from work sheet to worksheet in a Book? Pamela Martin Excel Discussion (Misc queries) 6 July 15th 06 12:32 AM
Moving a sheet from one work book to another? WTG Excel Worksheet Functions 1 November 3rd 05 07:12 PM
Is there away to keep "auto save" from jumping to the first work sheet in the work book? Marc New Users to Excel 2 April 21st 05 01:27 AM


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