+ Reply to Thread
Results 1 to 17 of 17

macro check modified

  1. #1
    Forum Contributor
    Join Date
    08-27-2019
    Location
    europa
    MS-Off Ver
    excel 2007
    Posts
    456

    macro check modified

    Hi everyone,
    there is a function/macro that creates a txt file when the workbook is closed
    where it is written if the file has been modified or not modified?
    xam
    Last edited by xam99; 08-27-2019 at 02:44 PM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: macro check modified

    Hi and welcome
    could you be more specific please?
    What function/macro are you talking about?
    Please post code/sheet on the forum
    Thanks

  3. #3
    Forum Contributor
    Join Date
    08-27-2019
    Location
    europa
    MS-Off Ver
    excel 2007
    Posts
    456

    Re: macro check modified

    I don't have any prepared workbook.
    I ask this:

    close excel and in txt if I don't modify anything it must be "unmodified"
    close excel and in txt if I change something it must be "modified"

    In the web I found this but I don't know how to change it
    Please Login or Register  to view this content.
    xam
    Last edited by xam99; 08-28-2019 at 04:14 AM.

  4. #4
    Forum Contributor
    Join Date
    08-27-2019
    Location
    europa
    MS-Off Ver
    excel 2007
    Posts
    456

    Re: macro check modified

    The workbook
    Attached Files Attached Files

  5. #5
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: macro check modified

    Hi there,

    See if the following code does what you need:

    Please Login or Register  to view this content.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  6. #6
    Forum Contributor
    Join Date
    08-27-2019
    Location
    europa
    MS-Off Ver
    excel 2007
    Posts
    456

    Re: macro check modified

    I GregM
    Your macro almost work.
    this does not work:

    open excel and I change something
    closed excel and in the notice "do you want to save ...." i choose no
    in tx/log It must be written "Unmodified", now it's always written "Modified".

    I hope I explained myself
    xam
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    Hey max_max !

    Instead of creating duplicate threads, cross-posting and using multiple user ID,
    it would be so smart to start a thread with a complete crystal clear explanation & the expected attachment accordingly …

    You'll see how much time you'll save instead of creating again & again the same badly explained thread, trust me !
    Last edited by Marc L; 08-28-2019 at 09:17 AM. Reason: typo …

  8. #8
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: macro check modified

    Hi again,


    close excel and in txt if I change something it must be "modified"

    You don't say anything about not SAVING changes! This is what Marc L is talking about when he says:


    a thread with a complete crystal clear explanation


    Take a look at the attached workbook and see if it does what you need. It uses the following code in the "ThisWorkbook" VBA CodeModule:

    Please Login or Register  to view this content.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Last edited by Greg M; 08-28-2019 at 09:43 AM. Reason: Code changed and updated workbook attached

  9. #9
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: macro check modified

    Quote Originally Posted by Marc L View Post
    Hey max_max !

    Instead of creating duplicate threads, cross-posting and using multiple user ID,
    it would be so smart to start a thread with a complete crystal clear explanation & the expected attachment accordingly …

    You'll see how much time you'll save instead of creating again & again the same badly explained thread, trust me !
    Please explain yourself clearly or report the post, instead of these " sous-entendus" which are very unpleasant and not constructive at all...

  10. #10
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    Quote Originally Posted by Pepe Le Mokko View Post
    Please explain yourself clearly or report the post, instead of these " sous-entendus"
    See last thread of john_cash and max_max (easy comparing the IP).
    The same posted on another forum yesterday …

  11. #11
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: macro check modified

    Significant revision of Post #8

    Corrections made there instead of creating another large post here.

    Greg M

  12. #12
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: macro check modified

    Quote Originally Posted by Marc L View Post
    See last thread of john_cash and max_max (easy comparing the IP).
    The same posted on another forum yesterday …
    Could you please be so kind as to add links to the threads you are talking about?
    FYI those persons have different IP's.
    Being arrogant does not help much as you already have been told...

  13. #13
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: macro check modified

    Nothing arrogant to advice OP how he can avoid to waste time !

    I can add the link for the other forum but for this one
    as you can easily find each thread from the members list then from each account …

  14. #14
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: macro check modified

    None of the members you suggested have posted lately according to logs
    Why not add the link? Or perhaps apply as mod, so you can help us instead of wasting our time??

  15. #15
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    Wasn't lately but earlier, 4th thread for the same subject with few days, 3 here and one on another forum.

    Wasn't neither to waste your time but just a friendly advice to OP (xam = max = …) to avoid to waste his time.
    But if here this upsets you, you can remove all my posts from this thread …

  16. #16
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: macro check modified

    Hi again xam99,

    Many thanks for the Reputation increase - much appreciated!

    Glad I was able to help.

    Best regards,

    Greg M

  17. #17
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: macro check modified

    Quote Originally Posted by Marc L View Post
    Wasn't lately but earlier, 4th thread for the same subject with few days, 3 here and one on another forum.

    Wasn't neither to waste your time but just a friendly advice to OP (xam = max = …) to avoid to waste his time.
    But if here this upsets you, you can remove all my posts from this thread …
    Why should we? It's a perfect example of what should be avoided

+ 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. Help with Last Modified Macro
    By Maleficent in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-17-2019, 10:08 AM
  2. macro to be modified
    By Marcin4111 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-12-2014, 07:34 AM
  3. Macro to run whenever any cell in the spreadsheet is modified
    By theoldebrewer in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-21-2012, 03:21 PM
  4. Modified transpose function OR macro?
    By froffel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-14-2009, 11:20 AM
  5. To run a macro when values of the cells modified?
    By tms_ in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-28-2008, 11:35 AM
  6. [SOLVED] Date last modified macro
    By Leon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-26-2005, 06:25 PM
  7. [SOLVED] Control End After the Sheet is Modified
    By Paul in forum Excel General
    Replies: 3
    Last Post: 02-18-2005, 01:34 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