Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
How about:
Range("C2:L2,N2,O2:R2,T2:W2").ClearContents No need to select first. nowfal wrote: HI, I would like to know to selected multiple ranges and clear the contents presently my code is like this: Range("C2:L2").Select Selection.ClearContents Range("N2").Select Selection.ClearContents ActiveWindow.SmallScroll ToRight:=6 Range("O2:R2").Select Selection.ClearContents Range("T2:W2").Select Selection.ClearContents I wanted to writed in one line like: Range("C2:L2","N2","O2:R2","T2:W2").Select Selection.ClearContents Any possibility. thanks in advance regards nowfal -- nowfal ------------------------------------------------------------------------ nowfal's Profile: http://www.excelforum.com/member.php...o&userid=10003 View this thread: http://www.excelforum.com/showthread...hreadid=392092 -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dynamic named range across multiple sheets | Excel Discussion (Misc queries) | |||
sum multiple criteria where final range is text? | Excel Discussion (Misc queries) | |||
Product Function in Pivot Tables from Multiple Consolidation Range | Excel Worksheet Functions | |||
SUMIF multiple criteria in 1 range | Excel Worksheet Functions | |||
Sum a range across multiple sheets | Excel Worksheet Functions |