Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 313
Default How can I move and entire row upon cell completion?

I am creating a punch list for our office. This is basically a list of jobs
that need to be finished and a date for when they were entered and the job
name. I would like to have the entire cell move to either the bottom of the
list or another sheet in the workbook upon completion of the date completed
field or a checkbox or something. Can this be done?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default How can I move and entire row upon cell completion?

It can be done, but why not just leave it where it is and use data|filter to
show or hide that row.

Or you could just sort the data by that column.

Tony wrote:

I am creating a punch list for our office. This is basically a list of jobs
that need to be finished and a date for when they were entered and the job
name. I would like to have the entire cell move to either the bottom of the
list or another sheet in the workbook upon completion of the date completed
field or a checkbox or something. Can this be done?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How can I move and entire row upon cell completion?

Assume data starts in A1 with header information in row 1 and data below, no
completely blank rows or columns within the data. Assume completion date is
column J.

right click on the sheet tab and select view code. In the resulting module
put in code like

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count 1 Then Exit Sub
' if change was in column 10
Application.EnableEvents = False
Set rng = Range("A1").CurrentRegion.Columns(10)
On Error Resume Next
Set rng1 = rng.SpecialCells(xlBlanks)
On Error GoTo ErrHandler
If Not rng1 Is Nothing Then
rng1.Formula = "=NA()"
End If
If Target.Column = 10 Then
Range("A1").CurrentRegion.Sort _
Key1:=Range("J10"), _
Order1:=xlDescending, _
header:=xlYes
End If
Set rng1 = Nothing
On Error Resume Next
Set rng1 = rng.SpecialCells(xlFormulas, xlErrors)
rng1.ClearContents
On Error GoTo ErrHandler
ErrHandler:
Application.EnableEvents = True
End Sub

--
Regards,
Tom Ogilvy




"Tony" wrote in message
...
I am creating a punch list for our office. This is basically a list of

jobs
that need to be finished and a date for when they were entered and the job
name. I would like to have the entire cell move to either the bottom of

the
list or another sheet in the workbook upon completion of the date

completed
field or a checkbox or something. Can this be done?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 313
Default How can I move and entire row upon cell completion?

Dave,

If would like to keep the row visible somewhere so that it can be looked
back on. Can I do this with a data filter? The sorting doesn't work because
the items are blank to begin. If I add something in ascending or descending
it puts the cells with something in them first.

"Dave Peterson" wrote:

It can be done, but why not just leave it where it is and use data|filter to
show or hide that row.

Or you could just sort the data by that column.

Tony wrote:

I am creating a punch list for our office. This is basically a list of jobs
that need to be finished and a date for when they were entered and the job
name. I would like to have the entire cell move to either the bottom of the
list or another sheet in the workbook upon completion of the date completed
field or a checkbox or something. Can this be done?


--

Dave Peterson

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default How can I move and entire row upon cell completion?

If you select the whole range, then do data|filter|autofilter, you can use the
dropdown arrow to choose the date you want to see--or blanks or non-blanks.



Tony wrote:

Dave,

If would like to keep the row visible somewhere so that it can be looked
back on. Can I do this with a data filter? The sorting doesn't work because
the items are blank to begin. If I add something in ascending or descending
it puts the cells with something in them first.

"Dave Peterson" wrote:

It can be done, but why not just leave it where it is and use data|filter to
show or hide that row.

Or you could just sort the data by that column.

Tony wrote:

I am creating a punch list for our office. This is basically a list of jobs
that need to be finished and a date for when they were entered and the job
name. I would like to have the entire cell move to either the bottom of the
list or another sheet in the workbook upon completion of the date completed
field or a checkbox or something. Can this be done?


--

Dave Peterson


--

Dave Peterson
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
automatically move entire row by cell validation Nynke Excel Discussion (Misc queries) 0 October 8th 10 04:51 PM
How move arrow keys from cell to cell and NOT entire col/rows Arrow keys: cell to cell not entire row New Users to Excel 1 November 13th 09 05:19 PM
check first cell in row, move entire row to sheet of that name Billyshuvl Excel Worksheet Functions 1 September 27th 07 02:07 PM
The Aarow keys move the entire sheet instead of to the next cell Ric Charts and Charting in Excel 1 April 26th 05 12:33 AM
arrow keys move entire sheet instead of cell to cell gbeard Excel Worksheet Functions 2 April 13th 05 04:59 PM


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