+ Reply to Thread
Results 1 to 4 of 4

VBA to append data with additional information based on row and column reference

  1. #1
    Registered User
    Join Date
    07-31-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    7

    VBA to append data with additional information based on row and column reference

    I have a spreadsheet with schedule activities that have been exported from a database. I need to append revised dates for each activity based on the Activity ID (leftmost column). I need to have a running history of the movements of the date projections from week to week.
    Sheet 1 contains the activities with the current dates. Sheet 2 contains the activities showing dates for each week as additional columns.
    I have a very basic knowledge of VBA and I need some help on creating a Macro to copy the current data and append the historical data keeping the previous week(s) dates in the previous columns.
    This needs to be done by referencing the Activity ID as I cannont ensure that my export will fill the exact same cells each week.

    I have attache a basic file showing what I am tying to achieve.
    Any help is appreciated.

    Thanks,
    Dan
    Attached Files Attached Files

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VBA to append data with additional information based on row and column reference

    Hi Nielsen,

    Try this:

    Please Login or Register  to view this content.
    Directions for running the routine(s) just supplied

    If you haven't used macros before you'll need to go to:
    File- options - trust center -trust center settings - macro settings ,
    the second option down (disable all macros with notification)

    Then - Copy the code to the clipboard

    Open your Workbook

    Press ALT + F11 to open the Visual Basic Editor.

    Select "Module" from the Insert menu

    Type "Option Explicit" then paste the code under it

    With the cursor between Sub and End Sub press F5 (F8 to Single Step)

    OR

    Press ALT + Q to close the code window.

    Press ALT + F8 then double click on the macro name
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    07-31-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: VBA to append data with additional information based on row and column reference

    This works great! Thanks!

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VBA to append data with additional information based on row and column reference

    You're welcome and thanks for the rep!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 02-06-2014, 03:00 PM
  2. Inserting data from drop down plus additional information
    By Betraystewart in forum Excel General
    Replies: 3
    Last Post: 08-25-2013, 06:02 AM
  3. Inserting Row with additional data based on column data with different conditions
    By Shantih in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-03-2013, 10:51 AM
  4. Append column to list based on match
    By dougw03 in forum Excel General
    Replies: 3
    Last Post: 01-31-2011, 12:47 PM
  5. Getting additional data from a reference
    By Andybdrums in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-21-2009, 01:49 PM

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