+ Reply to Thread
Results 1 to 2 of 2

code to detect cell range change

  1. #1
    Registered User
    Join Date
    08-19-2014
    Location
    atlanta, ga, usa
    MS-Off Ver
    2007
    Posts
    9

    Question code to detect cell range change

    i am trying to have a change in the range of a worksheet to activate a macro that copies, paste and sort the data from that range into another one. the copy/paste/sort macro portion works well but the code to detect the range change and call up the macro doesn't. I'm getting a "run-time 424 error". I ran this once and it worked but hasn't since. I have the following:

    Please Login or Register  to view this content.
    Here's what i've tried:

    loaded ms DAO object library
    used the "Private Sub Worksheet_Change()" event

    Please note the macro to copy/paste/sort is in a module.
    Last edited by alansidman; 09-12-2014 at 03:10 PM. Reason: code tags added

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: code to detect cell range change

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Replies: 7
    Last Post: 02-27-2014, 10:56 PM
  2. [SOLVED] Detect when all cells in a range change value
    By ozizushi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-22-2014, 12:09 PM
  3. VBA code to detect change in cells filled by combo box
    By Jollyfrog in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-25-2013, 07:58 AM
  4. VBA Code to detect change in fiscal year between dates
    By miam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2011, 03:33 AM
  5. [SOLVED] Detect Value change of a Cell
    By Stone in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2005, 05: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