Consulting

Results 1 to 5 of 5

Thread: Move row to different sheet on excel workbook based on a cell entry

  1. #1

    Question Move row to different sheet on excel workbook based on a cell entry

    Using Excel 2003, I need to do the following:

    So essentially I have the status column with a drop down that contains, Construction Complete, Ready For Install, and Complete. What I want to happen is when the status is changed to:

    Complete: The whole row will transfer/copy to the corresponding tabbed sheet based on Division which is a cell within the column.
    Construction Complete: The whole row will transfer/copy to the Construction Complete tab.
    Ready for Install: The whole row will transfer/copy to the Ready For Install tab.

    As a further note, I need this functionality on all tabs for the status.

    Any help would be greatly appreciated.

  2. #2
    Knowledge Base Approver VBAX Guru GTO's Avatar
    Joined
    Sep 2008
    Posts
    3,368
    Location
    Greetings jstephens01,

    I see this is your first post, so let me say Welcome(!) and let you know that you will 'meet' some great folks here, that often go "above and beyond" in assisting.

    Now as to your question... I get that you have a drop-down with a list, and that when the user picks a value, we're doing something. The what is not quite clear though. In short - which "whole row" is getting transferred/copied, and to where on the appropriate sheet?

    Hope to help,

    Mark

  3. #3
    Thanks Mark!!! :-) Ok so i have a spread sheet listing accounts along with different criteria of the account such as name account type etc. In the drop down under the status column, i have Complete, Construction Complete, Ready For Install. Based on what is selected, i want the row to move to the corresponding tab within the worksheet. If it helps, i can email you the sheet so you can see what i'm talking about. Thanks for your help.

  4. #4
    VBAX Tutor david000's Avatar
    Joined
    Mar 2007
    Location
    Chicago
    Posts
    276
    Location
    post a sample workbook

  5. #5
    VBAX Regular naris's Avatar
    Joined
    Jul 2008
    Posts
    34
    Location
    May be this script can answer your question.

    [VBA]

    Private Sub Worksheet_Activate()
    Range("C6").Select
    Selection.ClearContents
    Sheets("Header").Select
    End Sub

    Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
    Select Case Range("C6").Value
    Case Is <> ""
    On Error Resume Next
    Sheets(Range("C6").Value + 1).Select
    On Error GoTo 0
    End Select
    End Sub


    [/VBA]


    or you can try the attachment enclosed.

    Thanks
    Naris

Posting Permissions

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