+ Reply to Thread
Results 1 to 5 of 5

Can I use a Macro to generate a report for this spreadsheet as attached?

  1. #1
    Forum Contributor
    Join Date
    04-10-2006
    Location
    Somerset
    MS-Off Ver
    MS Office 2007
    Posts
    103

    Can I use a Macro to generate a report for this spreadsheet as attached?

    Hi

    I'm a basic user of Excel to be honest.

    I have a spreadsheet as attached below.

    What I'm aiming to do is to be able to simply press a button and for the sheet to generate a report with the cost information sorted per supplier.

    So, when you press the button, the cost totals per supplier (see left hand side of sheet).

    Is a Macro the best way forward and if so how easy is it to make this work?

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Can I use a Macro to generate a report for this spreadsheet as attached?

    Hi conks

    If I understand what you're looking for you can do this without Code using AutoFilter and the Subtotal(109) Function...see attached.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Contributor
    Join Date
    04-10-2006
    Location
    Somerset
    MS-Off Ver
    MS Office 2007
    Posts
    103

    Re: Can I use a Macro to generate a report for this spreadsheet as attached?

    Thanks Jaslake - that works well but it'd still be more efficient if I could push a button to make this work in one hit.

    I say this as there could be a lot of data and it would be great if, on button push, all the data could be sorted in a report/summary type style.

    Any ideas?

    Thanks.

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Can I use a Macro to generate a report for this spreadsheet as attached?

    Hi conks

    Let me see what I can do...

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Can I use a Macro to generate a report for this spreadsheet as attached?

    Hi conks

    See if this Code in the attached works for you...please note...I've eliminated the Merged Cells in Row 6 of Sheet1.

    Shortcut is Ctrl + x
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by jaslake; 11-05-2013 at 04:43 PM. Reason: Merged Cells

+ 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. Generate Report - Macro
    By mokztan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-09-2013, 03:00 AM
  2. Replies: 0
    Last Post: 05-16-2012, 04:16 PM
  3. Macro to generate report
    By Dr.SUN in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 03-23-2012, 05:38 AM
  4. Generate Report using Macro
    By Kohinoor in forum Excel General
    Replies: 1
    Last Post: 03-21-2009, 04:39 AM
  5. Can a Macro generate a report?
    By Fowley in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2008, 08:40 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