+ Reply to Thread
Results 1 to 2 of 2

Automatically add worksheet change event code

  1. #1
    Registered User
    Join Date
    07-28-2015
    Location
    Boston, MA
    MS-Off Ver
    MS Office 2010
    Posts
    8

    Automatically add worksheet change event code

    Hi!
    How do i go about having the following code automatically inserted into my worksheet? I've written a macro to format a spreadsheet and I want to highlight any changes that are made to cells by a user after the report is distributed. I don't want it to activate the change event until the very end of the macro though (sorry, i'm a newbie) or else it will highlight all the formatting changes. I need to run this on 100+ reports and don't want to have to insert the worksheet_change to every single one!

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Automatically add worksheet change event code

    I haven't tried it, but found this article that may help. You may want to add code to open the workbooks from a list, or maybe all files in a folder. Then add the code and save and close. Remember to save as xlsm (if not already) and change the output filetype to xlOpenXMLWorkbookMacroEnabled.

    http://stackoverflow.com/questions/1...ook-to-another
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

+ 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] Worksheet Change Event:... Automatically Run Excel Macros When a Cell Changes!!!!
    By meus in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-13-2015, 02:56 AM
  2. Same WorkSheet Change Event Code Across Multiple Sheets Help
    By jaylove in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-03-2014, 06:01 PM
  3. Worksheet change event code
    By Nitefox in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-18-2014, 10:52 PM
  4. Code for Worksheet Change Event Needed
    By ARGK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2013, 11:54 PM
  5. Worksheet Change Event code help
    By kev_33 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-12-2013, 01:51 AM
  6. worksheet change event - my code isnt working
    By tinkerbelle in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-17-2010, 06:58 AM
  7. [SOLVED] Worksheet Change event code moved to Worksheet Calculate event... and it's not working
    By KimberlyC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-23-2005, 06: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