+ Reply to Thread
Results 1 to 3 of 3

Combining two Worksheet_Change functions to clear contents in two areas same sheet

  1. #1
    Registered User
    Join Date
    11-24-2015
    Location
    China
    MS-Off Ver
    2013
    Posts
    8

    Combining two Worksheet_Change functions to clear contents in two areas same sheet

    I have attached a mock up of what i want to do but just to re-cap. I have data from column "A" through Column "AR". With this data a have some data vailidation I am using to select criteria for each cell to later generate cost. In this case I would like to clear the contents in columns 10~21, when a change is made to to a certain cell in column 9, and in the same sheet if the there is a change made at a different time to a certain cell in column 24, I want to clear the contents in columns 27~34.
    The problem I have is with the ambiguous name. i know there is a way to combine these but not sure what to do.

    Any help with this would be greatly appreciated.

    Les
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Combining two Worksheet_Change functions to clear contents in two areas same sheet

    You can just put one bit after the other. I have taken the liberty of simplifying a code a little too.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-24-2015
    Location
    China
    MS-Off Ver
    2013
    Posts
    8

    Re: Combining two Worksheet_Change functions to clear contents in two areas same sheet

    Thanks for the quick reply. I tried it and it works great! Thanks again!

+ 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. clear contents of entire sheet except the contents of the table
    By wayneg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-06-2015, 08:41 AM
  2. [SOLVED] Worksheet_Change to clear contents in multiple rows
    By KD5GB in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-30-2012, 01:16 PM
  3. [SOLVED] Clear Contents & Worksheet_Change combination
    By Jamison in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2012, 01:47 AM
  4. [SOLVED] Clear contents in another sheet
    By Oeysbrei in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-12-2012, 05:20 PM
  5. Clear Contents on Update when other code exists in the Worksheet_Change thingy
    By JRS_ in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-09-2011, 12:11 PM
  6. Excel 2007 : Clear contents on all protected sheet
    By SEHRA in forum Excel General
    Replies: 0
    Last Post: 06-22-2011, 08:36 AM
  7. Clear sheet contents but retain Clipboard contents
    By nebb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2007, 01:42 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