+ Reply to Thread
Results 1 to 31 of 31

modifying code create summary customers based on column sheet to multiple sheets

  1. #1
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    modifying code create summary customers based on column sheet to multiple sheets

    hello
    first of all i would thank M.r Jindon & Maniacb about your codes and solved for earlier my post in this link
    https://www.excelforum.com/excel-pro...ml#post5424988
    so if is possible amending code by search in multiple condition and show in the searching sheet only result1 (note: result2,3,4 just to understand what I'm looking for with ignore create sheets of customers
    condition1 in sheet result1 if I select name from n3 and no dates
    condition2 in sheet result2 if I select name from n3 and date in o4 & p4
    condition3 in sheet result3 if I select all without date
    condition 4 in sheet result 4 if I select dates and empty n3
    condition 5 maybe is complicated if is not possible ignore it I would create report all customer in one page sheet2 to print it
    i know this is very huge demands i hope read my post and help me
    thanks i
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: modifying code create summary customers based on column sheet to multiple sheets

    See if this is how you wanted.
    Since I had no time to test the code in much different combinations of the criteria, it might have bugs, so report back.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: modifying code create summary customers based on column sheet to multiple sheets

    hi, Jindon I tested the code , but there are many problem first when I select date from tool calendar it gives me error in this line
    HTML Code: 
    error application-defined or object-defined
    the second when I search name bring data without balance first of duration from sheet "balance first of duration" as in the original code , but when i select all add it without account in the lastrow to be matching with cell L3

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: modifying code create summary customers based on column sheet to multiple sheets

    That was the one I don't understand what kind of data will be entered from Calendar.

    I manually entered the dates in both cells.

  5. #5
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: modifying code create summary customers based on column sheet to multiple sheets

    just when i DoubleClick it shows me calendar and I choose day then insert whole date into cell , even write manually the dates still show the error

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: modifying code create summary customers based on column sheet to multiple sheets

    OK, try change to
    Please Login or Register  to view this content.
    Last edited by jindon; 11-29-2020 at 05:34 AM. Reason: Fixed a bug when not matching data.

  7. #7
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: modifying code create summary customers based on column sheet to multiple sheets

    still some problems in values please check my file I put some comments to understand closing in sheet "result1" & result2 and if is possible about date maybe some customers have no data if I write specific from date it gives me error could you fix it
    thanks
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: modifying code create summary customers based on column sheet to multiple sheets

    I put L3 Col.D from "balance first of duration" when the name is found.
    When not just put 0 in L3, isn't it what you wanted?

  9. #9
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: modifying code create summary customers based on column sheet to multiple sheets

    it's ok the code does that what I meant it should insert from g2 every name contains that

  10. #10
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: modifying code create summary customers based on column sheet to multiple sheets

    Please check my file sheet result1 i put my imagine to understand it
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: modifying code create summary customers based on column sheet to multiple sheets

    Try this
    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: modifying code create summary customers based on column sheet to multiple sheets

    it shows other problems if I choose dates without select name it doesn't show balance first of duration whether in cell I3 OR from row2 in cell g2 and if I write date in o4 is not existed for specific name it gives me error ,how can I fix it ,please?

  13. #13
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: modifying code create summary customers based on column sheet to multiple sheets

    Change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    Last edited by jindon; 11-29-2020 at 08:11 AM.

  14. #14
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: modifying code create summary customers based on column sheet to multiple sheets

    well done ! you did great work it remains standard 5 i know this complicated and may be different my thread for answering it's up to you otherwise I will issue a new thread as in my post # 1 I put the result in sheet2 it depends on sheet result1 what I search then copy to sheet2 the aim for this to print the reports what I choose it

  15. #15
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: modifying code create summary customers based on column sheet to multiple sheets

    Please Login or Register  to view this content.

  16. #16
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: modifying code create summary customers based on column sheet to multiple sheets

    awesome code but seem I don't explain clearly this code apply all of data yes i wanted that but if you can make it depends on select name and dates or dates only in short word what show in sheet result1 it copies to sheet2 like data all

  17. #17
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: modifying code create summary customers based on column sheet to multiple sheets

    OK, I'll look at it late this afternoon since I'm pretty busy today.

  18. #18
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: modifying code create summary customers based on column sheet to multiple sheets

    try
    Please Login or Register  to view this content.

  19. #19
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: modifying code create summary customers based on column sheet to multiple sheets

    it doesn't happened any thing in sheet2

  20. #20
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: modifying code create summary customers based on column sheet to multiple sheets

    If the attached doesn't work at your end, your EXCEL is different from mine.
    Attached Files Attached Files

  21. #21
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: modifying code create summary customers based on column sheet to multiple sheets

    astonishing code now it works as you file many thanks for your codes and your time
    best regards,
    Abdelfattah

  22. #22
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: modifying code create summary customers based on column sheet to multiple sheets

    hi, Jindon and sorry about comaback again if this upset you I will issue a new thread , I ask if is possible do that by userform the same all of things which you did the different show the data by userform instead of inside sheet I design the userform and the result show in sheet2 when show data in listbox based combobox is the same thing ,in short word the same thing all of thing , the different just how show data by userform
    thanks again
    Attached Files Attached Files

  23. #23
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: modifying code create summary customers based on column sheet to multiple sheets

    How do user enter "dates"?

    yyyy/mm/dd or mm/dd/yyyy etc.

    And is this related to the code I have already posted?
    I mean result1 and sheet2.

  24. #24
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: modifying code create summary customers based on column sheet to multiple sheets

    about date dd/mm/yyyy
    populating data in listbox are based on sheet1 not based on sheet (result1) but way showing data in listbox1 are the same thing like sheet"result1"
    stay same thing for way showing data in sheet2 when populate data in listbox

  25. #25
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: modifying code create summary customers based on column sheet to multiple sheets

    Please Login or Register  to view this content.

  26. #26
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: modifying code create summary customers based on column sheet to multiple sheets

    now I'm testing code every thing works astonishingly except one thing you seem forgot this or I don't explain clearly as I have ever mentioned when show data in listbox based on selection combobox, It supposes show data in sheet2 based what shows in listbox as what you have already posted
    thanks again

  27. #27
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: modifying code create summary customers based on column sheet to multiple sheets

    another point the values in textbox(debit & credit & balance) are not matched with what show in listbox
    there is something wrong from the first time the code works well when I search specific name repeatedly it happened odd thing odd every time i search name it changes the values into textbox
    please check it

  28. #28
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: modifying code create summary customers based on column sheet to multiple sheets

    1) Change to
    Please Login or Register  to view this content.
    2) Change Worksheet_Change code for result1
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  29. #29
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: modifying code create summary customers based on column sheet to multiple sheets

    hold on you did the code based on sheet result no this is not what I want this is my mistake I had to deleting sheet result when i attached the file and I'm sorry about it I would show the data in list box based on sheet1 like the sheet result you consider there is no sheet result

  30. #30
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: modifying code create summary customers based on column sheet to multiple sheets

    NO WAY!!!

    You are asking too much.

  31. #31
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: modifying code create summary customers based on column sheet to multiple sheets

    I know Jindon from the beginning it's too much please complete your favor

+ 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] create summary customers based on column sheet to multiple sheets
    By ABDELFATTA in forum Excel Programming / VBA / Macros
    Replies: 28
    Last Post: 11-16-2020, 08:10 AM
  2. [SOLVED] VBA code to create template sheets from Summary sheet
    By sags55 in forum Excel Programming / VBA / Macros
    Replies: 42
    Last Post: 11-15-2020, 02:13 PM
  3. Replies: 9
    Last Post: 03-28-2017, 08:30 PM
  4. Create Summary data sheet from multiple sheets
    By lkeatley in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-21-2015, 05:28 PM
  5. [SOLVED] Create a Summary Sheet from Multiple Sheets
    By ronnster in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-05-2014, 07:10 AM
  6. Replies: 2
    Last Post: 10-08-2013, 02:58 PM
  7. Create a summary from multiple sheets on a master/summary sheet
    By detribus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2012, 08:04 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