+ Reply to Thread
Results 1 to 5 of 5

Excel change log vba

  1. #1
    Registered User
    Join Date
    02-18-2004
    MS-Off Ver
    2013 and 365
    Posts
    20

    Excel change log vba

    Hi I have a change log sup that faithfully records every change but I can't get it to save the old value. I have tried setting a variable in selection change event but nothing happens whe the change event calls the sub apart form completeing all the other values.
    The original value cell (column D) remains blank

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

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Excel change log vba

    Hi lanser,

    as you have made oval a module wide variable you coukd try and make it global like
    Please Login or Register  to view this content.
    if UpdateLog is located in a normal/standard module.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Excel change log vba

    Try this in the "ThisWorkbook" module instead:

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

  4. #4
    Registered User
    Join Date
    02-18-2004
    MS-Off Ver
    2013 and 365
    Posts
    20

    Re: Excel change log vba

    Thanks Holger that worked and WBD I'll try yours too

    John

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Excel change log vba

    Hi John,

    glad I could be of help here.

    Holger

+ 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. how to subscribe to excel value change (tried data change and calculate event)
    By cooodooo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2021, 10:32 PM
  2. Replies: 0
    Last Post: 06-09-2014, 08:45 PM
  3. [SOLVED] Change all matching Value based on number change in Column Excel 2007
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 02-20-2014, 11:40 AM
  4. Replies: 3
    Last Post: 06-20-2013, 11:10 AM
  5. How to change colour of excel cell, and then change it back
    By JohnDoe017 in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 03-19-2013, 10:51 AM
  6. Replies: 2
    Last Post: 06-14-2012, 06:50 AM
  7. [SOLVED] excel deleting rows last cell does not change. How to change?
    By mrubey in forum Excel General
    Replies: 3
    Last Post: 08-25-2005, 04:05 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