VBA button that insert copied range of cells below and shift everything else down

Rubensho

New Member
Joined
May 13, 2022
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
Hi, I would kindly ask for help to accomplish this instructions using VBA:


excel issue.PNG


excel issue 2.png


excel issue 3.png


I already looked everywhere and no luck, any help will be really grateful.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Try out your macro recorder, then update your post with the code, somebody will be able to help with it.
 
Upvote 0
Solution
Try out your macro recorder, then update your post with the code, somebody will be able to help with it.
Omg.. Using macro recorder I solve this pretty easily.. sorry I'm newbie using VBA and macros, and thanks a lot for your reply it worked exactly how I needed.
 
Upvote 0
Show us the code.
It does not do exactly what I requested in the pictures but it get the job done, now instead of inserting values below it does insert on A10 and then shift down.
also now I copy that table from another worksheet and works great:
Sub Agregar()
'
' Agregar Macro
'

'
Sheets("Data").Select
Rows("1:6").Select
Selection.Copy
Sheets("ENTREV. INIC. Y EST DE SIT 1").Select
Rows("10:10").Select
Selection.Insert Shift:=xlDown
End Sub

1652429176750.png
 
Upvote 0

Forum statistics

Threads
1,214,598
Messages
6,120,441
Members
448,966
Latest member
DannyC96

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