VBA code to copy a one cell and a range of cells in one column to another sheet

bdt

New Member
Joined
Oct 3, 2024
Messages
42
Office Version
  1. 2019
Platform
  1. Windows
Hi, absolute novice with VBA and first post so please be gentle.
I have a work sheet (ABACUS) that has a cell (C2) with a week ending date and a range of cells (AX22:AX32) that have a number in them. I would like to run some VBA code to copy this data into another sheet (OVERTIME) with the cell C2 being added to column A and (AX22:AX32) being added to columns B to L in the same row.
The following week ending the same data would be added to OVERTIME but the row below.
Is this even possible? Any guidance much appreciated. Thanks
 
@bdt in future please mark the post that contains the solution, not your post it works. I have changed it for you this time.
Thanks
 
Upvote 0

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,222,562
Messages
6,166,805
Members
452,073
Latest member
akinch

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