+ Reply to Thread
Results 1 to 9 of 9

Vba to clear values

Hybrid View

  1. #1
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,930

    Re: Vba to clear values

    With ThisWorkbook
        .Sheets("Sheet1").Range("D5:Q40").Clear
        .Sheets("Sheet2").Range("C5:R40").Clear
    End With
    BSB

  2. #2
    Forum Contributor
    Join Date
    01-21-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    409

    Re: Vba to clear values

    Quote Originally Posted by BadlySpelledBuoy View Post
    With ThisWorkbook
        .Sheets("Sheet1").Range("D5:Q40").Clear
        .Sheets("Sheet2").Range("C5:R40").Clear
    End With
    BSB
    That's great. Would it be possible to add a "are you sure" to it to stop someone accidentally pressing clear?

+ 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] How to clear two comboboxes that depend on each other values.
    By pietras152 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-09-2013, 08:32 PM
  2. Hyperlink to clear cell values
    By sahar in forum Excel General
    Replies: 0
    Last Post: 12-07-2011, 01:27 PM
  3. SOLVED: Clear Cells with Certain Values
    By tjohn909 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 03-28-2011, 01:11 PM
  4. Replies: 4
    Last Post: 04-01-2009, 06:15 PM
  5. Clear data but keep cell values
    By mrdata in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-21-2007, 04:49 AM
  6. clear all data values
    By punkiegirl420 in forum Excel General
    Replies: 3
    Last Post: 10-14-2006, 01:46 AM
  7. [SOLVED] Macro to clear combo box values
    By Carpie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-09-2005, 02:05 PM
  8. Clear values
    By Rene' in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-04-2005, 01:06 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