+ Reply to Thread
Results 1 to 2 of 2

Pulling Data from multiple sheets and inserting rows

  1. #1
    Registered User
    Join Date
    11-13-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    1

    Pulling Data from multiple sheets and inserting rows

    Hello all,

    Brand new here, I wanted to see if my situation was solvable through a VBA or Macro.

    I have several sheets of people's information (that I clearly cannot cut and paste here) that I want to try to merge to one sheet.

    Say I have 3 people, A,B, and C, all three are on each sheet and appear several times. The sheets are record systems of events occurring and each event has a date associated with it.

    I would like to pull the events from each sheet and put them in order by date for each employee:

    Person Event Date
    A S 1
    A P 2
    A P 3
    A P 4
    B S 1
    B T 2
    C P 1
    C P 2
    C T 3

    Basically a larger merging over several sheets, would this be possible? Feel free to ask anymore clarification questions, I just can't post the actual data.

    Thank you!

  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: Pulling Data from multiple sheets and inserting rows

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button
    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]

+ 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