+ Reply to Thread
Results 1 to 8 of 8

Populate Template using VBA

  1. #1
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Populate Template using VBA

    Hi,

    I have a range of data i need to split using the header codes co1, co2, co3 & co4.

    The debits & credits needs splitting into the respective columns and also add the account data for each header code.

    I have attached an example of the data and what the template should look like (this has being done manually.

    Thanks in advance

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Populate Template using VBA

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Populate Template using VBA

    Another option.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: Populate Template using VBA

    Many thanks, i've had to amend some of the ranges in the data, could you reflect this in your example at all?

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Populate Template using VBA

    The output is in sheet3, but you can change this line

    With Sheets("Sheet3")

    To either new sheet or any other name.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: Populate Template using VBA

    Many thanks again, while saving this i came across the proper template as attached, the pivot range will remain the same but the journal range will need to start on line 3.

    Thanks in advance

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Populate Template using VBA

    I am assuming the result sheet is journal, so no need to adjust the headings and columns.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: Populate Template using VBA

    You are a superstar!!

    Much appreciated

+ 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. Populate cells into a new form template?
    By Bubba Howell in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-23-2012, 11:29 AM
  2. Use Excel to populate a template in clipboard?
    By diberlee in forum Excel General
    Replies: 5
    Last Post: 11-29-2011, 09:02 AM
  3. Populate template from a source file
    By Daanish in forum Excel General
    Replies: 4
    Last Post: 09-02-2010, 09:20 AM
  4. How to populate values in Normal.dot template or any Template file
    By csekhar.apps in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-11-2010, 01:03 AM
  5. [SOLVED] How do I populate 2006 calendar into the attendance template.
    By Lmorford in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-08-2006, 03:55 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