Results 1 to 5 of 5

Thread: Creating Custom Reports From Excel App.

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2004
    Location
    Right here
    Posts
    275

    Creating Custom Reports From Excel App.

    Hi all,

    I am working on a spreadsheet application for the water industry that predicts the cost of various types of infrastructure works. The spreadsheet is quite simple to use but it performs a lot of calculations. Each user may want to create a report of their own project and the results they want in their report will probably vary from user to user. The spreadsheet actually has lots and lots of results and graphs and so to make it easy to create custom reports I want to have a 'Create Custom Reports' worksheet. This will basically be a lot of check boxes with which people will select what results/graphs/etc they want to include in the report.

    My question is (before I create this worksheet): what is the best way to do this? I was thinking of having the report created in Excel but I thought a better approach would be to have Excel export the required information to Word, where it can be edited and printed like a normal document.

    So, I am not asking for advice on how to create this worksheet. The help I need is on whether to have the report in Excel or Word. Which is the best/easiest one to use? If I use Word I will obviously have to export the selected data from Excel into Word. Is this easy? Would it require some VBA programming?

    Thanks in advance.
    -Rob

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Creating Custom Reports From Excel App.

    Just some food for thought:

    If you were to place your app in Access instead of Excel, you could use a
    form to allow them to choose the options for the report. Then either display
    the report in Access or use the 'Analyze With...' menu item to export it to
    Excel or Word automatically. This would give you three reporting options.

    What do you think?

    Also, what version of Office do your users have?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2004
    Location
    Right here
    Posts
    275

    Re: Creating Custom Reports From Excel App.

    Hi RobDogg,

    The application is almost complete and I don't want to have to re-do it. Besides, I've never really used Access before whilst I am quite familiar with Excel, so I'm afraid that is the only viable option for me.

    I don't know exactly what version of Excel the user audience will have. I am writing it in Excel 2000 so I am going to recommend they have Excel 2000 or above, although I will be testing it in all the versions that I can find and also on as many different PCs as I can to ensure that it works across different platforms.

    The way I was thinking of proceeding is this:

    Have one worksheet with lots of checkboxes on so that users can select/deselect what they want to appear in the report e.g. results tables, graphs, text, etc.... then have another worksheet on which all these items are present. Then, for the items that are deselected simply hide the rows that contain these items. Then when the report is printed it will only print those items that are still visible (unhidden).

    I think this can be made to work. I was also thinking of having an 'Export to MS Word' option, which is simply a button that the user clicks and Excel copies all the visible information, opens Word and pastes it into a new document.

    If anyone has any comments about how feasible this is, or any ideas how I might do it better, then your thoughts are appreciated.

    Many thanks
    -Rob

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    May 2004
    Location
    Right here
    Posts
    275

    Re: Creating Custom Reports From Excel App.

    Mmm, okay. I just tried selecting/copying a whole worsheet with both text and graphs on, and then pasting it into Word. It only copies/pastes the text though - not the graphs. This could be a problem...

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Creating Custom Reports From Excel App.

    Try inserting an object from the Insert menu in Word. Then browse to your
    xl file and it will load the entire workbook.

    HTH
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width