+ Reply to Thread
Results 1 to 2 of 2

Clearing contents in another worksheet merged rang based on a change to a validation list.

  1. #1
    Registered User
    Join Date
    04-16-2015
    Location
    Kelowna
    MS-Off Ver
    2010
    Posts
    4

    Clearing contents in another worksheet merged rang based on a change to a validation list.

    Book1.xlsmHi,

    I have a drop down list in Sheet1, when I change the selection I need the contents of a merged cell range (that contains another data list that isn't dependent on the first) in a different sheet "Product" to be cleared.

    I can do this using a formula in Sheet1 and clearing fields in Sheet1 but I am missing something to clear the cells in another sheet. Please HELP!

    Here is my current code:

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("B2")) Is Nothing Then
    Range("B18:C22").ClearContents
    End If
    End Sub
    Last edited by skarrletter; 04-22-2015 at 01:06 PM. Reason: Add file

  2. #2
    Registered User
    Join Date
    04-16-2015
    Location
    Kelowna
    MS-Off Ver
    2010
    Posts
    4

    Re: Clearing contents in another worksheet merged rang based on a change to a validation l

    I solved it using this code:

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("B2")) Is Nothing Then

    With Sheets("Product")
    .Range("B18:C22").ClearContents
    End With
    End If
    End Sub

+ 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] Clearing Contents Below Merged Cells
    By snapfade in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-30-2014, 07:14 AM
  2. [SOLVED] Looking for a macro/VBA that can data group rang of lines based on cells contents
    By Zadok in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-02-2012, 12:05 AM
  3. Worksheet Change to copy from a sheet based on values from data validation list
    By Onenguyen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2012, 10:23 AM
  4. Generating dates rang based on list of ranges with weekdays
    By Draekus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-22-2011, 08:35 PM
  5. [SOLVED] [SOLVED] Clearing the Contents of Merged Cells
    By prizm1 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 09-10-2005, 12:05 AM

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