+ Reply to Thread
Results 1 to 5 of 5

Trial Balance extract - VBA

  1. #1
    Registered User
    Join Date
    02-21-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    64

    Trial Balance extract - VBA

    Hi All,

    I need macro to extract this information to respective sheets using "Account Type".
    Example:
    Copy from Sheet "Trial Balance" A2 value, Paste to Sheet "Balance Sheet" A20 cell
    Copy from Sheet "Trial Balance" A6 value, Paste to Sheet "Profit and Loss" A2 cell

    Like wise I need to extract values from A2 to A47 to respective sheets i.e., Profit and Loss & Balance Sheet

    TB.xls

    Thanks in advance

  2. #2
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: Trial Balance extract - VBA

    I think you should be able to do this without macros.
    For example, in A20 you will type:
    =A2
    This will "pull" the value in A2 into A20 and every time A2 is changed, A20 will also change automatically.

    Will this help you?

  3. #3
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: Trial Balance extract - VBA

    Perhaps something like this could be of use?

    To test run macro “SortData”

    As the macro uses autofilter to extract data I’ve used the formula “=SUBTOTAL(9,C2:C48) “ and “=SUBTOTAL(9,D2:D48)” in sheet “Trial Balance” as this formula will give me the sum of the visible rows when using autofilter.

    Macro start by clearing sheets “Profit and loss” and “Balance Sheet” and then it set up an autofilter for every case i.e. “Income”, Expense” and so forth.

    Alf
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-21-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    64

    Re: Trial Balance extract - VBA

    Quote Originally Posted by candybg View Post
    I think you should be able to do this without macros.
    For example, in A20 you will type:
    =A2
    This will "pull" the value in A2 into A20 and every time A2 is changed, A20 will also change automatically.

    Will this help you?
    Thanks Candyg for your help...

  5. #5
    Registered User
    Join Date
    02-21-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    64

    Re: Trial Balance extract - VBA

    Quote Originally Posted by Alf View Post
    Perhaps something like this could be of use?

    To test run macro “SortData”

    As the macro uses autofilter to extract data I’ve used the formula “=SUBTOTAL(9,C2:C48) “ and “=SUBTOTAL(9,D2:D48)” in sheet “Trial Balance” as this formula will give me the sum of the visible rows when using autofilter.

    Macro start by clearing sheets “Profit and loss” and “Balance Sheet” and then it set up an autofilter for every case i.e. “Income”, Expense” and so forth.

    Alf
    Thanks it worked exactly what I thought. Thanks for your help and saving my lot of time

+ 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. [SOLVED] To look up from Trial Balance to the respective cost centre
    By Dewdrop in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-18-2014, 11:01 PM
  2. Trial balance
    By MEH NAAZ in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 05-19-2014, 05:05 AM
  3. Replies: 1
    Last Post: 06-26-2013, 04:58 PM
  4. Trying to do a management report from trial balance (in Excel)
    By woody60plus in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-20-2013, 04:55 PM
  5. Comparison of 2 different bits are reference data from the trial balance
    By centillboy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-30-2012, 07:18 AM
  6. I want Financial statements linked to Trial Balance
    By omaniboy in forum Excel General
    Replies: 3
    Last Post: 05-11-2009, 05:14 AM
  7. [SOLVED] How to make aging possible in Excel for an age trial balance shee.
    By Anne L in forum Excel General
    Replies: 3
    Last Post: 03-20-2005, 02:06 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