+ Reply to Thread
Results 1 to 7 of 7

Code Reuse - Logging Actions When a Cell Changes

  1. #1
    Registered User
    Join Date
    04-01-2009
    Location
    new delhi
    MS-Off Ver
    Excel 2003
    Posts
    45

    Code Reuse - Logging Actions When a Cell Changes

    Hi all,

    I am trying to use following codes for a add-in utility so that user can enable or disable logging activity for a given workbook.
    My problem is to how to add the following code to a new workbook so that "Loginfo" function could be activated. I have tried some application... based commands but it do not seem to be working.

    Please Login or Register  to view this content.

    Is there is any way to add this code to a new workbook using code or any alternative to this activity?
    Complete code is mentioned below.

    Thanks,
    Webbug


    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    04-01-2009
    Location
    new delhi
    MS-Off Ver
    Excel 2003
    Posts
    45

    Question Re: Code Reuse - Logging Actions When a Cell Changes

    Look forward for reply guys....

  3. #3
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: Code Reuse - Logging Actions When a Cell Changes

    hi Govind

    To prevent any confusion I suggest changing your variables so that they do not use the same names as inbuilt objects in EXcel's VBA object model ie:

    Please Login or Register  to view this content.
    No promises, but you may find the below useful for guided discovery...
    Or, someone with more knowledge may step in & provide a definitive response - fingers crossed!

    You may* find useful info on Chip's site to allow this code (in an add-in) to work on any open workbook:
    *(I haven't read the entire article)
    http://www.cpearson.com/excel/Events.aspx
    &
    http://www.cpearson.com/excel/AppEvent.aspx

    To add the code to another workbook using code have a look at:
    http://vba2008.wordpress.com/2008/10...ing-excel-vba/
    or some of the links on:
    http://vbadud.blogspot.com/2008_10_01_archive.html

    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

  4. #4
    Registered User
    Join Date
    04-01-2009
    Location
    new delhi
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: Code Reuse - Logging Actions When a Cell Changes

    Dear Rob,

    Thanks for all your help.


    Govind

  5. #5
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: Code Reuse - Logging Actions When a Cell Changes

    Thanks for the feedback

    I'm not really sure how much help I've been but...

    Once you have a working solution, would you be able to post it to this thread?
    - It will help any others who review this thread looking for answers to their specific problems.
    - I'll be able to learn the technique myself without having to do all the testing ;-)


    Thanks
    Rob

  6. #6
    Registered User
    Join Date
    04-01-2009
    Location
    new delhi
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: Code Reuse - Logging Actions When a Cell Changes

    Sure..
    I have got a link on this forum
    http://www.excelforum.com/excel-prog...in-add-in.html

    I am trying to understand this one..I am bit new to programming. It will take me some time to get this done. I will surely put as soon as i finish making it.

    Thanks,
    Govind

  7. #7
    Registered User
    Join Date
    04-01-2009
    Location
    new delhi
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: Code Reuse - Logging Actions When a Cell Changes

    HI all,

    This is the final file which is working and used class module.
    I am facing a different problem i will post an other thread for that.

    Govind
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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