+ Reply to Thread
Results 1 to 2 of 2

Thread: Excel macro to delete specific cells

  1. #1
    Registered User
    Join Date
    08-10-2010
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2003
    Posts
    3

    Excel macro to delete specific cells

    I would need a simple macro that allows to delete specific cells in Excel, based on NO condition (linked to a button). For example, I could enter cells from A2 to G2 and the macro would delete their content.

    Thank you!

  2. #2
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,639

    Re: Excel macro to delete specific cells

    Not sure what you mean exactly
    Selection.ClearContents
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel Tips & Solutions, free examples and tutorials why not check out my downloads

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0