+ Reply to Thread
Results 1 to 69 of 69

Want Macro for Daybook

  1. #1
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Want Macro for Daybook

    Dear All

    Please find the attachment
    stock daybook



    the file has 3 sheets
    1. master (source table sheet) 2. daybook (with formula) 3. daybook (with macro)

    I left third sheet empty for you.

    please input your macro code to get the same output like in sheet 2.

    waiting for reply ..

    thank you so much .
    Last edited by kprabhupaul; 02-12-2017 at 01:21 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    First of all Thanks for your Solution ..

    Please find the file I have attached.

    Below are the modifications..

    1. Please use table references instead of normal references (Because my data goes very long day by day)

    2. I forgot to tell you about value " BETA " exclusion from the results population.

    In formula case, I wrote like this (Master[DATE]=$B$1)*(Master[PARTY]<>"BETA")
    I think lines to be modified are
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    3. I have tried to make the same look like Formula sheet by changing font size to 14, but after running macro font size changing to normal.

    please fix these problems ..

    Thank you so much legend ..
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    waiting for the reply,

    can anyone fix the above problems ..?

    thank you

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    This remove the Range limitation: you don't need TABLEs

    Please Login or Register  to view this content.
    The code needs to be re-written to accommodate the exclusion of "BETA".

  6. #6
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    thank you, But I think it takes time to search entire the column.

    so please give the tables way too, because I like it ..

    and I can wait for your re-code for exclusing " BETA " from PARTY column.
    Last edited by kprabhupaul; 02-13-2017 at 07:13 AM.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    It does not search the entire column: only between SREC and SREC+NREC-1 (first /last records for a given date).

    I have never used VBA with tables (old and old fashioned .. me, that is!) so not sure how they work.

  8. #8
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    That's ok brother.,

    please fix the remaining too ..

    Thanks in advance ..

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    Please Login or Register  to view this content.
    I removed "Formula" sheet (too slow!!)
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    your file is working super fast ..

    But have to fix something. (almost done)

    today office closed.

    we can discuss tomorrow.

    any way thanks for your true help .. (added reputations)
    Last edited by kprabhupaul; 02-13-2017 at 11:28 AM.

  11. #11
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Want Macro for Daybook

    give this a try. Just change the date in cell B1
    Attached Files Attached Files
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  12. #12
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    Dear Mike,

    Thanks for code too (Added Reputation),

    It's also working very good, and I'm at my home, so I can't tell you anything more about this right now.

    because I have to test this on the original file in office,

    any way thanks, and let you know within 3 hours from now ..

  13. #13
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    and dear mike,

    meanwhile, try to exclude the results of " BETA " value from PARTY column ..

    Thank you ..

  14. #14
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    dear mike, i'm getting the below error in my original file ..

    error.JPG

  15. #15
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    You will need to post file as it is possibly a data error: check the date field in B1 as this is the parameter in the FROM statement

  16. #16
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    ... or Sheet name ("MASTER")

    I have tested Mike's code and it seems pretty robust to me: if data is invalid it exits the subroutine so as far as i understand it the only other parameter is the sheet name..

  17. #17
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    what I have to do now ..?

    have to delete sheet " DAYBOOK " (with formulas) ..?

  18. #18
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    There is no requirement to delete any sheets: The code simply references (uses) the sheets "MASTER" and "DAYBOOK MACRO".

    Can you post the file (or subset of) giving the error ?

  19. #19
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    do you mean file uploading here ..?

    or are you asking to upload the file here ..?

  20. #20
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Want Macro for Daybook

    Yes.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  21. #21
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    Here's my original file,

    please do the needful

    thank you brothers ..
    Attached Files Attached Files

  22. #22
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Want Macro for Daybook

    Quote Originally Posted by kprabhupaul View Post
    Here's my original file,

    please do the needful

    thank you brothers ..
    And sisters ...

  23. #23
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    sorry sister, I forgotten (Added reputation to you too).

    Onething I forgotten to tell, that is

    Please exclude " PURCHASES " valued results from TYPE column.
    (Previously it is " BETA " value from PARTY column, now don't exclude this)

    thanks ..

  24. #24
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    ERROR GETTING ON THIS LINE

    Capture.JPG

    2.JPG

    Thanks in advance ..

  25. #25
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    In my macro .....

    Please Login or Register  to view this content.
    replaces test for BETA

  26. #26
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    Quote Originally Posted by JohnTopley View Post
    In my macro .....

    Please Login or Register  to view this content.
    replaces test for BETA
    yes, your modified line is working to exclude PURCHASES correctly..

    and Please fix the error in mike code .. thank you ..

  27. #27
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    Put this in Mike's "GetRange" function

    Please Login or Register  to view this content.
    to replace

    If oListObject.Name = ListName Then

  28. #28
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    not worked and erased my formulas in 1st row cells ..
    Last edited by kprabhupaul; 02-14-2017 at 10:25 AM.

  29. #29
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    Please Login or Register  to view this content.
    it is the total code of mike in my workbook ..

  30. #30
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    Worked OK for me and I tested on several dates.

    The change only checked the values in UPPER CASE to ensure a match as previously one value was lower case, the other upper and they did not match so the GETRANGE was not created.

  31. #31
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Want Macro for Daybook

    Quote Originally Posted by kprabhupaul View Post
    not worked and erased my formulas in 1st row cells ..
    I hope you are testing this on a copy of your workbook!!!

  32. #32
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    now what I have to do ..?

  33. #33
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    I noticed that some dates (31/01/2017) are out of date sequence: my macro assumes everything is sorted by date.

    now what I have to do ..?

    .... don't understand ?????

    and what is formula on "Welcome" for "Hold" as it has #REF error?
    Last edited by JohnTopley; 02-14-2017 at 12:14 PM.

  34. #34
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    You can leave #ref error, I can solve it ..

    Why because it is, I deleted some unnecessary sheets ..


    No problem with your code, its working good.

    https://drive.google.com/file/d/0Bzs...w?usp=drivesdk


    It is my file , make Mike's code to be worked in it ..

    Thanks ..

  35. #35
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Want Macro for Daybook

    I'll take a look at this issue as soon as I get to a computer this evening. What issue are you having?

  36. #36
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Want Macro for Daybook

    Give this a try. John was correct about the Ucase. You had the Table as MASTER before and now you have Master.

    Please Login or Register  to view this content.

  37. #37
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    Both of your codes working like rocket.. (When deleted daybook sheet with array formulas)

    only onething to be sorted per code,

    John, i'm getting the below error when there are no data for a given date (but I don't like this, it should keep silent [ like in mike's code] )

    Runtime error '13':
    Type mismatch


    And Dear Mike, excel is alerting me about the CREDIT column format ..

    the number in this cell is formatted as text or preceded by an apostrophe (In John's code, there are no format alerts)

    Please do the needful ..

    Thanks to both of you .. (Added Reputaions )

  38. #38
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    Mike,

    morning your file was worked in my home laptop.

    But now in office system, it's not working

    (I did not changed anything in your code yet not coming any error, just not populating results)..
    Attached Files Attached Files

  39. #39
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    Updated code ....

    Please Login or Register  to view this content.

  40. #40
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    John,

    Ok I understood that you have given another exit to sub. and it's working.

    But at the moment of that middle sub exit, the master sheet is being in active. (But I want B2 in DAYBOOK MACRO sheet)

    thanks ..

  41. #41
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    And I forgot that is please simplify the code as much as possible ..

    and one morething is,

    do you know why mike's code is not working in office system ..?

  42. #42
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    I am now finished with this thread:

    (a) the code is as simple as I can make it : what is complex about it as it is a simple FOR /NEXT loop using in-core arrays which makes it very fast and efficient.

    (b) how will I know why Mike's code is not working in a system I have no access to

    (c) what does the mean ..." But I want B2 in DAYBOOK MACRO sheet)" .

  43. #43
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    I agree with your (a) & (b) points.

    coming to (c),

    I want the B2 cell in " DAYBOOK MACRO " sheet to be active after sub exit. (in case of middle error)

    have you got it ..?

  44. #44
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    Why ?: Cell B2 is the "Party" heading and if macro exits it remains in the "Daybook Macro" tab. If you really require it to select B2 you can add the code.

    As I said earlier "Je suis fini"

  45. #45
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Want Macro for Daybook

    Krabhupaul - might I suggest that in future, if you require this level of support with a query, you consider the Commercial Services section, where you can offer some financial recompense.

  46. #46
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    Quote Originally Posted by JohnTopley View Post
    Why ?: Cell B2 is the "Party" heading and if macro exits it remains in the "Daybook Macro" tab. If you really require it to select B2 you can add the code.

    As I said earlier "Je suis fini"
    Sorry it's not B2, it's B1 (that is date cell)

  47. #47
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    If it too much effort to move the cursor to B1 from B2 ..........!!!!

  48. #48
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    Quote Originally Posted by JohnTopley View Post
    If it too much effort to move the cursor to B1 from B2 ..........!!!!
    Brother, if you don't mind, I will tell you onething ..

    You are not getting me,

    that is at the point of middle sub exit the master sheet is getting activated.

    but I want the B1 in daybook sheet to be active/selected ..

  49. #49
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    when we are searching day by day transactions in daybook sheet,

    if any error occurred master sheet is getting activated.

    so we are disturbing from searching our transactions ..

    (I think by language problem you are not getting me please understand )

  50. #50
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    I really don't understand what the issue is: the added test for a non-existent date in the MASTER data in my macro just exits the routine - no more.

    If I put a date with no data in "Daybook" (formula sheet) it simply leaves a blank set of results as I would expect.

    The macros, either Mike's or mine, affect this ("DAYBOOK") tab; neither macro references it.

    So I don't know what errors you are getting BUT I cannot reproduce them.

  51. #51
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    Just wait 5 minutes, I will send you a video link ..

  52. #52
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    the video is processing on youtube

    please watch this
    https://youtu.be/oPThQoO0Ge4
    thank you ..
    Last edited by kprabhupaul; 02-15-2017 at 11:00 AM.

  53. #53
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    I still guessing but ...

    in my macro

    Please Login or Register  to view this content.
    in Mike's macro before "rs.close"

    Please Login or Register  to view this content.
    Given the VBA code aleady present (you wrote it ?) it should have been easy to make these amendments.

    Moving forward/backward between dates works OK for me (I assume this is the issue): If you have problems then .....???

  54. #54
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    brother,

    Ok. Now not going to master if error comes ..

    (staying in daybook b2)

    thank you ..

    but please find the attachment now..

    and search for 15-02-2017 (today) transactions.

    actually there are 27 transactions but macro result is showing only 26 (leaving last row)

    I read your code 4 times and did not find any clause for that ..

    please see why it is occuring and fix ..

    thanks for great patience (added reputations)
    Attached Files Attached Files

  55. #55
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    The reason is the first 15/02/2017 record is record 4416 BUT record 4418 has a date of 11/02/2017 and as was explained to you many posts ago the macro expects the data to be in ascending date order. If this not so you will get the wrong results.

    The reason for having the records in date sequence is so that we don't have match EVERY record to see if it is the chosen date: 4500 to check???,

    The macro finds the first record with the selected date and then counts the number of records with that date to get the range to select. So I check in this case, 29 records starting at 4416 so finish at 4416+29 = 4444 (inclusive) whereas the actual last record is 4445. NOTE also the macro does NOT check the date: it "assumes" all records selected are for the correct date.

    "Odd" records in the midst of that sequence will result in the "errors" you see.

    You need to much more analytical in investigating why things do not work.

    It is case of RIBO: "Rubbish In, Rubbish Out"

    The integrity of the data is the issue NOT the logic of the macro.

  56. #56
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    I have added a new macro ("Daybook_John2") which does not depend on sorted dates.

    It is currently called in the attached whenever you change the date in B1 in "Daybook macro" (rather than the "Daybook" macro)

    NOTE: Record Count is from Mike's macro so currently is not changed by the new macro (so ignore for the moment).

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JohnTopley; 02-15-2017 at 11:55 PM. Reason: added code

  57. #57
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    Quote Originally Posted by kprabhupaul View Post
    Dear All

    Please find the attachment
    stock daybook



    the file has 3 sheets
    1. master (source table sheet) 2. daybook (with formula) 3. daybook (with macro)

    I left third sheet empty for you.

    please input your macro code to get the same output like in sheet 2.

    waiting for reply ..

    thank you so much .
    It was my first post

    Great Job and Well done brother John, you are awesome.

    Your code is fulfilled my requirement.

    Thank you so much [ADDED REPUTATIONS]

    (PROBLEM SOLVED).
    Last edited by kprabhupaul; 02-16-2017 at 03:48 AM.

  58. #58
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Want Macro for Daybook

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  59. #59
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Want Macro for Daybook

    Rule 08: Cross-posting Without Links

    I have just discovered that your post does not comply with Rule 8 of our Forum RULES. Do not cross-post your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    You have had several people working on the same problem on two separate forums and have, it seems, received solutions from both: https://www.mrexcel.com/forum/excel-...ml#post4757242

    Do NOT cross-post in this way again without providing links. Warning served.

  60. #60
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    Two people JohnTopley and Mike7952 are given two solutions.

    JohnTopley's code is working and fulfilled the requirement ..

    and Mike7952's code was also worked in my home laptop and it's not working on my office system.

    whenever Mike fixed this I mark this thread as [SOLVED].

    Thanks to who helped me and to the forum too ..
    Last edited by kprabhupaul; 02-16-2017 at 05:12 AM.

  61. #61
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Want Macro for Daybook

    We know these things. I am afraid they are no excuse for breaking the forum rules. You have been a member here long enough to know what those rules are, but it seems you need a refresher. Please make a point of reading them in full before posting here again: http://www.excelforum.com/forum-rule...rum-rules.html

    Thank you.

  62. #62
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Want Macro for Daybook

    Quote Originally Posted by kprabhupaul View Post
    Two people JohnTopley and Mike7952 are given two solutions.

    JohnTopley's code is working and fulfilled the requirement ..

    and Mike7952's code was also worked in my home laptop and it's not working on my office system.

    whenever Mike fixed this I mark this thread as [SOLVED].

    Thanks to who helped me and to the forum too ..
    What is not working? What error's are you getting? Hard to figure out when you just say not working.

  63. #63
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    Dear Mike,

    First of all thanks for your great patience in helping me.

    Please find " Daybook Mike " sheet in the attached file.

    Worksheet will call " Daybook Mike " macro on it's change.

    Your macro is working very well on my laptop and it is not working on my office PC.

    I'm not getting any error and the area which the results to be populated is being empty always.

    You can watch this video how it is going https://youtu.be/7Wq2AvvGIN4

    Here is your Code :

    Please Login or Register  to view this content.
    Waiting for your fix ..

    Thanks again ..
    Attached Files Attached Files
    Last edited by kprabhupaul; 02-17-2017 at 07:20 AM.

  64. #64
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Want Macro for Daybook

    @Mike,
    OP already has a working solution so I don't know why he persists in getting you to look at your solution.

    He has cross-posted this thread and had a third respondent reply with VBA code so 3 people have spent (some uneccessary) time on this problem

  65. #65
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    Dear Mike,

    Brother Johntopley's solution is already working for me.

    Please note that there is no problem with me when I receive your solution or not.

    But I want to know why your code is not working in my office PC (That's why only I'm asking to fix).

    Now it is your choice to fix this.

    Really thank you so much for the time you spend to help me ..

  66. #66
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Want Macro for Daybook

    However, the main issue is resolved, so the thread needs marking as such.

  67. #67
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    Dear AliGW,

    Just give one chance, whenever and whatever Mike replied to this thread I will mark this [SOLVED].

    (I'm just waiting for his reply)

    Please .......
    Last edited by kprabhupaul; 02-17-2017 at 10:52 AM.

  68. #68
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Want Macro for Daybook

    I really don't know why to be honest. Without giving any error there is no way to offer a solution. More then likely it is a setting on your work computer/network. Being John has you a working solution I'm gonna jump out of this thread.

  69. #69
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Want Macro for Daybook

    That's OK

    Thread marked [ SOLVED]

    Thank You

+ 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] Macro to add another Macro to a button to add into a larger Macro.
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-03-2016, 10:51 AM
  2. [SOLVED] Define variable in macro than calling that macro inside another macro
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2015, 10:58 AM
  3. Using a macro on workbook1 to create a button in wb2 and assigning macro "wb2!macro"
    By penfold1992 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2014, 11:39 AM
  4. [SOLVED] Macro to show Which macro didnt work in a nested macro
    By akhileshgs in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-10-2013, 03:21 AM
  5. Perform macro "on open" specific file- store macro in Personal Macro Workbook?
    By thompssc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2012, 12:38 PM
  6. lookup macro, solver macro, realtime macro
    By xelhelp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-02-2011, 06:14 PM
  7. Cannot find macro error when running a macro from a macro in a diffrent workbook.
    By Acrobatic82 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2010, 09:22 AM

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