Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Move text after delete
I have a range on my worksheet (B7:K23) that I add and remove data from via
a user form. When I clear contents of data how can I get all data below the original data to move up a row so as I don't end up with empty cells. Cheers Greg |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Move text after delete
You can use Range("B7:K23").Delete Shift:=xlShiftUp Sharad *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Move text after delete
Thanks for the reply. I don't want to delete any rows. I just want any text
underneath the cells that I have cleared the contents of to move up 1 row. Cheers Greg "Sharad" wrote in message ... You can use Range("B7:K23").Delete Shift:=xlShiftUp Sharad *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Move text after delete
The code I gave, does not delete any rows.
Unless you have defined names to those cells the effect is exactly same as clearing the cell and manually doing cut-paste to move up. Sharad *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Selecting every other row to delete or move | Excel Discussion (Misc queries) | |||
How do I set up an automatic delete or move of a row of data? | Excel Discussion (Misc queries) | |||
can't insert, delete or move pictures | Excel Discussion (Misc queries) | |||
Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below | Excel Programming | |||
Delete cells - auto move | Excel Programming |