How to move down data?

daniel50096230

Board Regular
Joined
May 2, 2008
Messages
163
Hi,I would like to create a button,then I choose the row that I want the data to be move down..For example,when I choose the row 20,the data from row 21 to 30 will move down,and 31-40 will move down and so on....so that from row 21-30,there will be empty....
 
Code:
Sub Macro1()
    Range("A1:N37").Cut  'change yr range accordingly
    Range("A10").Select
    ActiveSheet.Paste 'assume row 10 onwads

End Sub
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Makrini,I had send the file to you through pm..Hope you can help me out...Anyway,thank you very much for helping me alots....
 
Upvote 0
The file is full of Excel version 4.0 Macros which are taking full control of the workbook - I would say start a new workbook...
 
Upvote 0
So you means I should not using this version of macros???Ok,I will try to create a totally new workbook...Anything I will just let you know....:D...
 
Upvote 0
of course

I wouldn't come here if I didn't like to help people (I feel like I owe it to the gurus who have always helped me when I need)
 
Upvote 0

Forum statistics

Threads
1,215,517
Messages
6,125,288
Members
449,218
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top