VBA - Copy Data Range without giving exact location to another sheet

JAti

New Member
Joined
Aug 21, 2024
Messages
1
Office Version
  1. 365
  2. Prefer Not To Say
Platform
  1. Windows
Hi Everyone,

I would like to insert a "few" step(s) to my Recorded Macro, where the Weekly Data amount will be copyed to an other sheet (That should be an other Workbook, but first i would like to understand that step first)
What i need is always the last 6 rows and 8 columns.
-As a first step i would like to choose any cell to make sure that i am on the right sheet
-find the last row
-select 7 colums to the right and 5 rows up

Sheets("Sheet1").Select
Range("A200").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.End(xlDown).Select
ActiveCell.Offset(7, -5).Copy (So i need that step here to be choosen in this week A206:H211 but next week should be a different range)
Sheets("OtherSheet1").Select
Range("B4").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("AXI-Auswertung").Select

is it possible somehow?

Thanks for any hints!

Excel.png
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
To answer at best your question we would like to know how your data are organized, this week and the next ones
Probably an image will be sufficient
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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