+ Reply to Thread
Results 1 to 6 of 6

Clear Content Macro?

  1. #1
    Registered User
    Join Date
    12-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Clear Content Macro?

    I am trying to come up with a way when I change a name in a cell to erase the values associated with the old cell name. I think I need a macro, but have no idea if I do need one or what it would be.

    Shawn
    Last edited by sgris; 12-05-2012 at 02:44 AM.

  2. #2
    Registered User
    Join Date
    06-29-2011
    Location
    MUMBAI
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    85

    Re: Clear Content Macro?

    attach a example file. With an explaination. We will try to solve it.

  3. #3
    Registered User
    Join Date
    12-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Clear Content Macro?

    This is going to take place on the add/cut worksheet. I'm looking for a way to have V14 clear when u14 changes names. This is going to happen when e28 changes. I want to link e28 to u14 so I only have to change e28. There are several other spots in the document this type of action needs to take place.
    Attached Files Attached Files
    Last edited by sgris; 12-05-2012 at 02:12 AM.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Clear Content Macro?

    Do Right click on the sheet tab and select view code and add the below code in the vba code window.

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Registered User
    Join Date
    12-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Clear Content Macro?

    I just tried the previous code and it worked great. How would I add more cells that follow this type of code?
    Last edited by sgris; 12-05-2012 at 02:22 AM.

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Clear Content Macro?

    Revised version of code for doing changes on your own. Just copy from IF until end if and paste it before end sub and change it to your next condition cells accordingly.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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