+ Reply to Thread
Results 1 to 5 of 5

macro to select 'all' and delete contents.

  1. #1
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    macro to select 'all' and delete contents.

    Hi.

    I currently have this sub
    Please Login or Register  to view this content.
    But its not working.

    The data will always range from column A to column AA
    and will start on cell A6

    Please help.

  2. #2
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: macro to select 'all' and delete contents.

    Or Is there a way for me to select A6 and then run the command "Ctrl A?"

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: macro to select 'all' and delete contents.

    Please Login or Register  to view this content.
    try change it in this line

    Please Login or Register  to view this content.
    First is the row, Second is the column so you got to changes at least the second part => column 27 = AA
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: macro to select 'all' and delete contents.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: macro to select 'all' and delete contents.

    ActiveSheet.Range("A6:AA" & Cells(Rows.Count, 1).End(xlUp).Row).ClearContents
    Thank you!

+ 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] Macro to clear & delete contents on other worksheets
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-04-2012, 06:15 PM
  2. [SOLVED] Macro to delete certain contents of a cell
    By SpyderPB6 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2012, 07:16 PM
  3. Macro to delete cell contents in every other column
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-01-2010, 12:29 PM
  4. Open a folder and delete contents Macro
    By ninja0059 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2008, 02:32 PM
  5. [SOLVED] select cell at random and delete contents
    By JJ in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-01-2005, 07:05 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