Results 1 to 3 of 3

Moving updated data to specific sheet

Threaded View

  1. #1
    Registered User
    Join Date
    01-23-2013
    Location
    Cornwall
    MS-Off Ver
    Excel 2003
    Posts
    30

    Moving updated data to specific sheet

    I have a spread sheet called Cases 2014
    I have another spread sheet in the same work book called ONGOING cases and another sheet called COMPLETED cases.
    I have two macros that update these two spread sheets ie when 'ongoing' is typed in the status column (column 24) of 'Cases 2014' the info required is copied to the ONGOING sheet.
    When Completed is typed into the status column of Cases 2014 the COMPLETED sheet is updated with required data.
    They both work perfectly but....
    The ONGOING sheet as it implies needs updating regularly for reporting purposes.
    The trouble is if I over type 'ongoing' in the 'status' column of the Cases 2014 I get that line of data reproduced again on another line ie I would like the original line of data either erased so the new data takes preference or just the items in that line updated.
    Here is a copy of that code.
    Sorry not sure how to do the whizzy hide thing! Fred

    If Target.Count = 1 Then
              If Target.Column = 24 Then
                  If LCase(Target.Value) = "ongoing" Then
                     Intersect(Range("A:A,G:G,H:H,J:K,V:V"), Target.EntireRow).Copy _
                              Destination:=Worksheets("Ongoing cases").Cells(Rows.Count, 1).End(xlUp).Offset(1)
                  End If
              End If
          End If
    End Sub
    Last edited by alansidman; 02-22-2014 at 10:40 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 04-08-2011, 11:42 PM
  2. Replies: 1
    Last Post: 04-07-2011, 03:44 PM
  3. Moving specific data to one sheet
    By fclt in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-03-2011, 10:24 PM
  4. Moving Specific Data from one Sheet to another
    By Althas in forum Excel General
    Replies: 7
    Last Post: 09-27-2006, 08:53 AM
  5. Finding specific data and moving it to a new sheet
    By LauraD in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-10-2006, 06:14 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1