LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Sub to clear range above n below diagonal

Looking for help with a sub(s) which can assist in clearing the ranges above
& below a "diagonal" running from bottom left to top right.

Say I have a populated range D13:G16
where the diagonal cells from bottom left to top right are D16, E15, F14,
G13

I would like to run a sub to clear the range above the diagonal,
ie clear D15, D14:E14, D13:F13

and another sub/option to clear the range below the diagonal,
ie clear G14, F15:G15, E16:G16

Any insights appreciated, thanks


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i clear a perticular range using a function...??? Saleem Hyder Excel Discussion (Misc queries) 1 September 13th 09 07:09 PM
If range is empty, clear other cells Shelly Excel Programming 2 March 28th 07 01:11 AM
Clear Contants in a Range Based on a Value Jeff[_50_] Excel Programming 4 April 14th 06 12:58 AM
Clear range of cells in different worksheet Tim Kelley Excel Programming 1 December 30th 04 06:54 PM
cells in a diagonal range Doug[_8_] Excel Programming 5 November 5th 03 02:55 PM


All times are GMT +1. The time now is 10:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"