+ Reply to Thread
Results 1 to 4 of 4

Clear Contents in an another worksheet

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-09-2015
    Location
    malta
    MS-Off Ver
    Microsoft 365
    Posts
    387

    Clear Contents in an another worksheet

    Hi all,

    Hope all is well. I need a simple VBA which will basically clear the contents of a range of cells found in another Sheet.

    Therefore if I am on 'sheet 1'as soon as the VBA code is run it will clear the contents of cells A1:D40 found in 'Sheet 2'.

    Apologies for being such a noobie Thanks in advance for your kind help

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

    Re: Clear Contents in an another worksheet

    Sheets("Sheet 2").Range("A1:D40").Clear
    BSB

  3. #3
    Forum Contributor
    Join Date
    02-09-2015
    Location
    malta
    MS-Off Ver
    Microsoft 365
    Posts
    387

    Re: Clear Contents in an another worksheet

    Cheers !!! Thanks a ton!!! That worked very good!

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

    Re: Clear Contents in an another worksheet

    No problem. Happy to help

    BSB

+ 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. Clear merged cell contents in comand button(clear all)
    By mohan_984 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-25-2015, 10:39 AM
  2. clear contents of entire sheet except the contents of the table
    By wayneg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-06-2015, 08:41 AM
  3. [SOLVED] Clear Cell Contents on Worksheet Change
    By nickhunt in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-22-2015, 03:18 AM
  4. [SOLVED] Clear Contents in Multiple WorkSheet
    By Allansdc in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 12-18-2013, 10:32 AM
  5. Clear Contents of Cells On Another Worksheet
    By Tellm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2012, 05:27 PM
  6. Copy list contents down, then clear contents
    By hektisk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2011, 04:34 PM
  7. Clear sheet contents but retain Clipboard contents
    By nebb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2007, 01:42 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