Macro to select the 20 rows below the currently selected cell

Buns1976

Board Regular
Joined
Feb 11, 2019
Messages
194
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I have a macro that selects the cell in column A which contains the text "Freight Summary". "Freight Summary" is always in column A but can be in any row. I need to continue this macro by selecting the 20 rows below the cell containing "Freight Summary", copy those rows over to column B

Thanks,
B
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
selecting the 20 rows below the cell containing "Freight Summary"
By your image the row with Freight Summary moves over and so you don't need the Offset (and there aren't 20 rows)

Edit: What are you trying to say in your last post?
 
Upvote 0
Solution
Got it! Thank you very much!!
By your image the row with Freight Summary moves over and so you don't need the Offset (and there aren't 20 rows)

Edit: What are you trying to say in your last post?
Correct on the 20 rows. I will use the same macro for 4 scenarios but alter the number of rows which seems to be consistant
 
Upvote 0
Happy you got it sorted, glad we could help.
 
Upvote 0

Forum statistics

Threads
1,215,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

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