+ Reply to Thread
Results 1 to 6 of 6

Automatic copy cell to another sheet if populated

Hybrid View

Jauron Automatic copy cell to... 12-24-2012, 01:03 PM
jeffreybrown Re: Automatic copy cell to... 12-24-2012, 01:15 PM
Jauron Re: Automatic copy cell to... 12-24-2012, 02:06 PM
jeffreybrown Re: Automatic copy cell to... 12-24-2012, 04:11 PM
Jauron Re: Automatic copy cell to... 12-24-2012, 04:32 PM
jeffreybrown Re: Automatic copy cell to... 12-24-2012, 04:36 PM
  1. #1
    Registered User
    Join Date
    12-24-2012
    Location
    Home
    MS-Off Ver
    Excel 2003
    Posts
    3

    Automatic copy cell to another sheet if populated

    Excel 2007. Workbook has multiple sheets, one for each month and another sheet labeled Action Items. Within each month is a column that action can be entered into, along with other information (action item is not a requirement, so can be blank and don't want blank copied). Would like the action items sheet to self populate without having to create a line for each possibility (like a simple ='December 2012'!L2 etc would require).

    I don't want the entire row, just the cell Action Item in the individual months so that dates and persons assigned can be recorded.

    Sorry if I broke any rules so far.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Automatic copy cell to another sheet if populated

    How about attaching a sample sheet with a before and after?
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    12-24-2012
    Location
    Home
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Automatic copy cell to another sheet if populated

    Attached. If you look at Action Items sheet you can see I"m pulling (as an example) from December 2012 sheet, Action column. Hopefully this gives you an idea of what I am trying to do.
    Attached Files Attached Files

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Automatic copy cell to another sheet if populated

    Right click on the December 2012 sheet and paste macro below on the right side of screen.

    Now when you place an action item in column L that action item will be transferred to the next available row on the Action Items sheet

    Private Sub Worksheet_Change(ByVal Target As Range)
        Dim destSht As Worksheet: Set destSht = Sheets("Action Items")
        Dim destLR As Long: destLR = destSht.Range("C" & Rows.Count).End(xlUp).Row + 1
        If Not Intersect(Target, Range("L:L")) Is Nothing Then
            If destLR = 8 Then
                Target.Copy Destination:=destSht.Range("C9")
            Else
                Target.Copy Destination:=destSht.Range("C" & destLR)
            End If
        End If
    End Sub

  5. #5
    Registered User
    Join Date
    12-24-2012
    Location
    Home
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Automatic copy cell to another sheet if populated

    You ROCK!! Thank you very much this is perfect.

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Automatic copy cell to another sheet if populated

    Well you are most welcome and thanks for the feedback.

    Happy Holiday's

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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