+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Populating Data from one sheet to another sheet automatically

  1. #1
    Registered User
    Join Date
    04-12-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    6

    Populating Data from one sheet to another sheet automatically

    Hi,

    Need on your help for populating data automatically from one sheet to another sheet based on selected data. Specifications are as follows:
    * I input a row of data on Sheet A and from the same row, in Column D, I have a drop down with selections (WIP,Won,Loss). When I select "Won", certain details of the data row with the "Win Selection" is populated automatically in Sheet B.

    Attach is a testing data spreadsheet.


    Thanks
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Populating Data from one sheet to another sheet automatically

    Try this code. Right click on Sheet A and input this
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Populating Data from one sheet to another sheet automatically

    I really can't see the need for moving data. If you change the Status column then it's simpler to keep all the data one sheet & use AutoFilter to check details.

    If you really want to do this have 3 sheets -Won,WIP & Lost. Add this code to the worksheet module

    Please Login or Register  to view this content.
    Worksheet event code is stored on a worksheet module. To add it to your worksheet, do the following:

    Copy the code
    Select the worksheet in which you the code to run
    Right click on the sheet tab and choose View Code, to open the Visual Basic Editor.
    Where the cursor is flashing, choose Edit | Paste
    Attached Files Attached Files
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    04-12-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Populating Data from one sheet to another sheet automatically

    Hi guys,

    The codes are not wroking. Infact, it is changing the status of the next row within Sheet A itself.

    My objectove is that I want data in Sheet A to be automatically populated in the other sheet (Sheet B) whenever I change the status in Column D in Sheet A. For example, if I change the status of a project from "WIP" to "Won", I want the fields (Project, Country & Sector) to be populated in Sheet B automatically.

    Thanks for helping. I am really stuck with it.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Populating Data from one sheet to another sheet automatically

    My code moves the data to the relevant sheet, as I said to make it simpler use the sheet names to correspond with the status. Have you tried it?

  6. #6
    Registered User
    Join Date
    04-12-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Populating Data from one sheet to another sheet automatically

    I can't really use the status description as the Sheet Names since actually I have three sheets named as follows:
    *Opportunities
    *Invoice
    *Projects

    The Opportunities Sheet is the master data. All entries are done manually in this sheet. When the status of the a row changes from WIP to Won, it is then the data should be filled in automatically in Invoice and Projects Sheets.

    Thanks

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Populating Data from one sheet to another sheet automatically

    Then adapt the code that I posted. Your explanation doesn't match the example - you have 3 statuses in the example - Won, WIP & Lost. If you can't adapt the code then post a better example

+ 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