+ Reply to Thread
Results 1 to 4 of 4

VBA Code to ClearContents of multiple cells on an ActiveRow

  1. #1
    Registered User
    Join Date
    09-22-2014
    Location
    Wellingborough, England
    MS-Off Ver
    Microsoft Office 2016 Professional
    Posts
    49

    VBA Code to ClearContents of multiple cells on an ActiveRow

    Hi All,

    I am new to VBA coding and need some help please .....

    I would like to ClearContents of multiple cells on an ActiveRow by clicking on a button when the First Name cell in Column B is selected

    I've managed to get it to work for a specific row (i.e row 20) but would like this to work for any ActiveRow.

    Any help is appreciated ....


    The code below is how I've got it to clear the contents of row 20

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,465

    Re: VBA Code to ClearContents of multiple cells on an ActiveRow

    Is this what you are after?
    Please Login or Register  to view this content.

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,474

    Re: VBA Code to ClearContents of multiple cells on an ActiveRow

    Please Login or Register  to view this content.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,122

    Re: VBA Code to ClearContents of multiple cells on an ActiveRow

    Perhaps...
    Please Login or Register  to view this content.
    Last edited by sintek; 12-27-2017 at 02:46 PM. Reason: Amended code
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

+ 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. Copy ActiveRow cells to another sheet
    By lynyrdskynyrd5 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2017, 06:50 AM
  2. VBA Code to clearcontents
    By tubbs1969 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-19-2016, 08:59 AM
  3. [SOLVED] ClearContents of Merged Cells
    By Bezzie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-02-2015, 11:26 AM
  4. [SOLVED] Using Range.clearcontents causing type mismatch error in code
    By Captian LDS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-28-2014, 04:54 PM
  5. [SOLVED] VBA .ClearContents code
    By SHELTONUNDERDOG in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-10-2012, 09:13 PM
  6. ClearContents of a range of cells in on sheets bar 5
    By Juenapa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-08-2011, 05:18 AM
  7. Clearcontents of range on multiple worksheets
    By stephenw in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2007, 10:37 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