+ Reply to Thread
Results 1 to 4 of 4

Clear contents in specific cell and the cells in the next 2 columns to the right

  1. #1
    Forum Contributor
    Join Date
    09-11-2013
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    265

    Clear contents in specific cell and the cells in the next 2 columns to the right

    Hi all,

    I am currently using this Code to search column1 for a Key Word that is entered into textbox "Künde" on my userform.

    Please Login or Register  to view this content.
    What i would really like to be Abel to do is :

    Search for the cell in column1 with =Kunde.Value
    Clearcontents of this cell and the 2 adjacent to the right.

    i.e.
    Word is found in A7
    Cells A7:C7 contents are cleared and fill Color returned to default colorindex 0


    Any help would be appreciated

    Regards

    JRidge
    Last edited by JRidge; 07-04-2014 at 04:25 AM.

  2. #2
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Clear contents in specific cell and the cells in the next 2 columns to the right

    Try this code..
    I am sure ... I will work.. I may require some adjustments..

    Please Login or Register  to view this content.
    Waiting for *

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Clear contents in specific cell and the cells in the next 2 columns to the right

    This will work for 1 positive match of Kunde.Value. If you want multiple matches let me know.

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    09-11-2013
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    265

    Re: Clear contents in specific cell and the cells in the next 2 columns to the right

    Thank you they both work.

    Regards

    jeremy

+ 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] Clear contents of specific cells on the same row if a specific cell on that row is empty
    By djfscouse in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2014, 01:48 PM
  2. Macro to clear only the contents of the cells which have a specific font colour
    By Stellakyp in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-05-2013, 11:01 AM
  3. Code to clear contents of specific cells based upon if key exists in other sheets
    By seputus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2013, 07:25 PM
  4. Clear contents of cells that do not contain specific text, sort cells that do
    By feckless.lout in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2010, 01:41 AM
  5. Replies: 1
    Last Post: 08-22-2006, 12:30 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