Copying data from 1 workbook to another and changing header names based on ever-changing master data source

Status
Not open for further replies.

SteynBS

Board Regular
Joined
Jun 27, 2022
Messages
97
Office Version
  1. 365
Platform
  1. Windows
Hi Guys

I have a data source with information that changes. The layout stays the same in other words the columns will always be the same but the rows will either be more or less. And some cell names (Sub-headers if you will) will change

This is the source on workbook "Master" Sheet 1 I want to copy Columns A:K from row 6 to the end of the data below. (Changes every time). This will be pasted in another workbook "Sales"Sheet 1 Range A2. Columns L:W from row 6 to the end of the data range in the Master Workbook (which might have some blank cells) will be copied and pasted in Workbook "Sales" Sheet 1 from X2:AI. I hope this makes sense.

Then as a "would be nice to do" the names in L3:W3 in the "master" Workbook should be added to the names in Workbook "Sales" X1:AI - So basically it would look something like this:
ActiveCell.Value(This is Workbook "Sales" X1) = "Gr Sales" & " " & "MASTER".Sheets(Sheet1).Cells(3,12).Value "Gr Sales being the constant and the Name will change everytime the master data is updated.

1662098809381.png
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Duplicate to: Copy Range of data to the end

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,213,513
Messages
6,114,072
Members
448,546
Latest member
KH Consulting

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