+ Reply to Thread
Results 1 to 13 of 13

Need VBA or macro for Dynamic Report Creation with specfic Criteria

  1. #1
    Registered User
    Join Date
    11-22-2016
    Location
    INDIA
    MS-Off Ver
    EXCEL 2003,2007
    Posts
    8

    Need VBA or macro for Dynamic Report Creation with specfic Criteria

    Hello All

    We know about this website/forum to my friend.. he suggest me we put our problem here so we will got a VBA solution for my main reporting problem..

    We are working a construction firm where we have a lot no of road database in excel file with various type of condition..

    We make report mostly three type currently we make report with filtering, sorting etc methods and after that we format this data as per reporting..

    1 Block wise Report (we want any specific block all road data) (Block name in Column B)
    2 Sanction Project wise Report (we want all road data in specific Sanction Project) (Sec_project Name in Colum H)
    3 Road Condition Report (we want all road data in specific Road Condition) (Condtion_road Name in Colum G)

    Our reporting format is common i.e. 7 Column. (Sheet 2)

    We require a VBA Macro for dynamic report creation.. if we enter any one of three Search place we want a filter report in 7 column reporting format with Search Criteria..

    Currently some one told me to record macro we record a macro but with this record macro not exactly work as per my reporting..

    Reporting Style :-
    • First we Fiter Data from main sheet as per required column..
    • Then we sort Filter data on Column G i.e.Sec_projecte Name
    • Then We numbering start from 1 to filter data in Report Sheet Sr. No.
    • and in last we insert a Total line with Project Name and sum these project road lenght and Sanction Cost
    • and finally Grand total of all totals.

    i think we clear my reporting pattern for VBA or macro creating..
    We want when we Enter specific block name in B2 Cell then That Specific Block report display in reporting format....
    if we enter Speific Project name in D2 then Specific Project report display in reporting format...
    if we enter Speific Condtion of Road in G2 then Specific Road Codntion report display in reporting format..
    My Data (this is just 300 road data and it's not original data of my database) in Main Sheet Reproing Sheet is Sheet 2
    in Sheet 3 we give a exmple that which type we prepare report mannually..

    My Recorded Macro is already apply in File

    Hope We got my problem solution with this forum..

    Thanks in Advance..
    Pankaj
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-22-2016
    Location
    INDIA
    MS-Off Ver
    EXCEL 2003,2007
    Posts
    8

    Re: Need VBA or macro for Dynamic Report Creation with specfic Criteria

    I need this help...Pls

  3. #3
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Need VBA or macro for Dynamic Report Creation with specfic Criteria

    Does all your files contains columns with the names exactly the same as columns in Report? If the answer is Yes, than I think it`s quite easy solution, VBA arrays shoud do the trick.
    And report on Sheet3 - is the result you want to recive, right? Is this report form constant or there are other reports form? Didn`t really get how much reports you need to prepeare one or three or ..?
    If there are any other forms - please attach them.

  4. #4
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    Re: Need VBA or macro for Dynamic Report Creation with specfic Criteria

    mate, i suggest splitting the tasks into different queries...
    Please consider:
    Be polite. Thank those who have helped you.
    Click the star icon in the lower left part of the contributor's post and add Reputation. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .
    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Posting code between tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

  5. #5
    Registered User
    Join Date
    11-22-2016
    Location
    INDIA
    MS-Off Ver
    EXCEL 2003,2007
    Posts
    8

    Re: Need VBA or macro for Dynamic Report Creation with specfic Criteria

    Hi Kasan sir
    Yes my files contains columns with the names exactly the same as columns in Report
    and sheet3 is my report output example for easy to understand..
    We want one time one report.. but my search criteria is three type.. but report output is common..

    Thanks for showing intrest to my problem..

  6. #6
    Registered User
    Join Date
    11-22-2016
    Location
    INDIA
    MS-Off Ver
    EXCEL 2003,2007
    Posts
    8

    Re: Need VBA or macro for Dynamic Report Creation with specfic Criteria

    IonutC sir Thanks for showing intrest in my thread ... sir how's possible to split this task in different quires .. actually we want a single macro so that will be very easy for me..

  7. #7
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Need VBA or macro for Dynamic Report Creation with specfic Criteria

    Pankajlko, please check attached file.
    On sheet "Settings" in cell B4 you can fill any Block Name (assuming that this Block exist in sheet Main), then press button and get result on sheet "Report"
    This is just temporary result, if direction of my idea is right - than we can develop it (add some formating and so on)
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    11-22-2016
    Location
    INDIA
    MS-Off Ver
    EXCEL 2003,2007
    Posts
    8

    Re: Need VBA or macro for Dynamic Report Creation with specfic Criteria

    Hi kasan its work exactally as per my one search need..
    actually insted of run report button and in Cell Value B4 we enter text in cell b2 then automatically result display in same sheet not report sheet..

    ur current VBA is running in only Block name...

    thanks for ur valuable help..

    we also add rep..

    thanks

  9. #9
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Need VBA or macro for Dynamic Report Creation with specfic Criteria

    Well, as I told you - this is just as demonstration.
    That do you mean by "VBA is running in only Block name"? It means you need a report with different criteria, right?
    Current code can be copied and slightly changed to make him do what you wanna do. Just give me examples of other reports.

  10. #10
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Need VBA or macro for Dynamic Report Creation with specfic Criteria

    Please Login or Register  to view this content.
    Kind regards
    Leo
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    11-22-2016
    Location
    INDIA
    MS-Off Ver
    EXCEL 2003,2007
    Posts
    8

    Re: Need VBA or macro for Dynamic Report Creation with specfic Criteria

    Hi LeoTaxi Sir ur provided VBA is working suparb as per my need..

    Thanks a lot

    sir is it possible in line sum show in value form if show formula insted of value the that will be very usefull to me..

    and if any option of search criteria is not found in main record then a msg box display that "NO RECORD FOUND"

    currently it's vba running as per my need thanks u so much..

    Really this forum is very usefull to all of us..

    Thanks
    Last edited by Pankajlko; 11-25-2016 at 01:01 AM.

  12. #12
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Need VBA or macro for Dynamic Report Creation with specfic Criteria

    For the msgbox

    Please Login or Register  to view this content.
    no soluution for formulas instead of values, maby manual ?

    Kind regards
    Leo

  13. #13
    Registered User
    Join Date
    11-22-2016
    Location
    INDIA
    MS-Off Ver
    EXCEL 2003,2007
    Posts
    8

    Re: Need VBA or macro for Dynamic Report Creation with specfic Criteria

    no problem about formula issue.. i think my problem will be solve with this VBA thanks a lot

+ 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. Report Creation - Newbie Help
    By ghadfield in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2014, 03:08 AM
  2. Replies: 1
    Last Post: 10-30-2012, 05:40 PM
  3. Replies: 5
    Last Post: 10-03-2012, 09:36 AM
  4. [SOLVED] Macro: Dynamic creation of sheet based on cell value then copy range to the new sheet
    By BeachRock in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-15-2012, 11:31 AM
  5. Dynamic Macro creation
    By namz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-24-2010, 01:28 AM
  6. Report creation from worksheet data
    By That_Girl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-11-2007, 04:43 PM
  7. data base report creation
    By doctor z in forum Excel General
    Replies: 0
    Last Post: 02-03-2005, 08:54 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