Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a range A1:D3 called "range" and I need to add rows to this range
( A1:D3 = A1:D4 = A1:D5) and I need to remove them too. How should I do this? Thank you |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
set rng = Range("A1:D3")
rng.rows(rng.rows.count).Insert shift:=xlShiftDown ? rng.Address $A$1:$D$4 if you mean a named range set rng = Range("A1:D3") rng.name = "Range" ? Range("Range").Address $A$1:$D$3 Range("Range").Rows(Range("Range").Rows.Count).Ins ert Shift:=xlShiftDown ? rng.Address $A$1:$D$4 ? Range("Range").Address $A$1:$D$4 -- Regards, Tom Ogilvy "Buddy Lee" wrote in message ... I have a range A1:D3 called "range" and I need to add rows to this range ( A1:D3 = A1:D4 = A1:D5) and I need to remove them too. How should I do this? Thank you |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thank you and I'm sorry for my english :)
-- icq 25372592 "Tom Ogilvy" pí¹e v diskusním pøíspìvku ... set rng = Range("A1:D3") rng.rows(rng.rows.count).Insert shift:=xlShiftDown ? rng.Address $A$1:$D$4 if you mean a named range set rng = Range("A1:D3") rng.name = "Range" ? Range("Range").Address $A$1:$D$3 Range("Range").Rows(Range("Range").Rows.Count).Ins ert Shift:=xlShiftDown ? rng.Address $A$1:$D$4 ? Range("Range").Address $A$1:$D$4 -- Regards, Tom Ogilvy "Buddy Lee" wrote in message ... I have a range A1:D3 called "range" and I need to add rows to this range ( A1:D3 = A1:D4 = A1:D5) and I need to remove them too. How should I do this? Thank you |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Maybe I missed it, but what about removing rows? From the range object only,
and not from the worksheet as well as Range.Delete would do? Thanks, Anton "Buddy Lee" wrote: thank you and I'm sorry for my english :) -- icq 25372592 "Tom Ogilvy" pÃ*¹e v diskusnÃ*m pøÃ*spìvku ... set rng = Range("A1:D3") rng.rows(rng.rows.count).Insert shift:=xlShiftDown ? rng.Address $A$1:$D$4 if you mean a named range set rng = Range("A1:D3") rng.name = "Range" ? Range("Range").Address $A$1:$D$3 Range("Range").Rows(Range("Range").Rows.Count).Ins ert Shift:=xlShiftDown ? rng.Address $A$1:$D$4 ? Range("Range").Address $A$1:$D$4 -- Regards, Tom Ogilvy "Buddy Lee" wrote in message ... I have a range A1:D3 called "range" and I need to add rows to this range ( A1:D3 = A1:D4 = A1:D5) and I need to remove them too. How should I do this? Thank you |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
remove rows in one sheet from similar rows in another | Excel Worksheet Functions | |||
How to remove a lot of rows? Please help | Excel Discussion (Misc queries) | |||
macro to remove a named range always called "database" & if possib | Excel Programming | |||
range.find method called into a VBA function (problem) | Excel Programming | |||
Excel called from external app (OLE) stops after processing exactly 10921 rows | Excel Programming |