Copying Data

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,363
Office Version
  1. 2021
Platform
  1. Windows
I need a macro to copy data from column BA (Named Data1-This column can change when new columns are inserted) and the second & third column to the right of column BA ie BC & BD. This must be copied to the range FinData (columns BH:BJ)

Your assistance in this regard will be most appreciated

Howard
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

RalphA

Well-known Member
Joined
May 14, 2003
Messages
3,829
Assuming your data is in the range BA2:BC50, and you want to copy that data to the range BH2:BJ50, then, in BH2, enter =BA2. and copy to the range BH2:BJ50. Now, when you enter new columns anywhere, the formulas should automatically update to reflect the new range that is to be copied.
 
Upvote 0

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,363
Office Version
  1. 2021
Platform
  1. Windows
Hi Ralph

Thanks for the reply. I managed to write code to do this for me. The imported data changes all the time as new accounts are added, so I thought it would be wise to write a code to automate the process. It was easier than I thought it would be

Regards

Howard
 
Upvote 0

RalphA

Well-known Member
Joined
May 14, 2003
Messages
3,829
Congratulations, Howard, on your code-writing skills! Me, I'm fairly stomped by VBA, so, I stay away from it.
 
Upvote 0

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,363
Office Version
  1. 2021
Platform
  1. Windows
Hi Ralph

Still a VBA Novice, but learning all the time.

Regards

Howard
 
Upvote 0

Forum statistics

Threads
1,191,121
Messages
5,984,765
Members
439,909
Latest member
daigoku

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
Top