+ Reply to Thread
Results 1 to 2 of 2

vba code to clear data & formats from contigious and non contigious range to last data

  1. #1
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    vba code to clear data & formats from contigious and non contigious range to last data

    Hi All

    looking for a code as follows to last data row

    Sheet Data

    Row 1 has headers from column A to Column Z


    1)Code to clear data only not formats from row A2 to row Z2 to last row of data contigious range

    2)Code to clear data and formats from row A2 to row Z2 to last row of data contigious range

    3) Code to clear data at specific columns non contigious range
    e.g column B ,F,G,M,N,P ,R, T

    3b)Code to clear data and formats at specific columns non contigious range .
    e.g column B ,F,G,M,N,P ,R, T

    NOTE headers at row 1 shoud not be clear

    Thanks if anyone can assist

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: vba code to clear data & formats from contigious and non contigious range to last d

    Why not try recording macros for each scenario while you complete the task manually? That will give you the basic code. It just need tweaking to cater for variable rows of data.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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 formats from used range
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-17-2016, 07:10 PM
  2. [SOLVED] macro to sum amount in contigious and non contigious columns
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-28-2016, 03:32 PM
  3. Need Additional Macro Code to clear out data from secondary Page after data has been chang
    By ExcelBeginner326 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-26-2014, 02:05 PM
  4. [SOLVED] Average Non Contigious Cells
    By Adam Schaefer in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-20-2013, 10:04 AM
  5. Replies: 1
    Last Post: 06-21-2013, 04:05 AM
  6. Comparing values in non contigious cells
    By thePriest in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-03-2005, 02:07 AM
  7. Multiply non-contigious arrays
    By Rob Gould in forum Excel General
    Replies: 7
    Last Post: 02-28-2005, 09:06 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