VBA Vlookup or another best option to copy from a filtered sheet columns to other tabs?

Melimob

Active Member
Joined
Oct 16, 2011
Messages
396
Office Version
  1. 365
Hi there

I have some imput data sheets that will be filtered by country.
Using what's filtered, I need to populate that info into other sheets.

At the moment, I am using VBA to populate one column, then within that sheet, I am just doing vlookups but I wonder if there is a better way to do this all at once?

Code:
Sub GetClientData()'
' GetClientData Macro
'


'
    Sheets("ImportCCB").Select
    Range("Table10[Control Centre Company Build]").Select
    Selection.Copy
    Sheets("ABC Clients ").Select
    Range("C3").Select
    ActiveSheet.Paste
End Sub

Then my vlkups are

Header Table name: In Control Center
=IFERROR(VLOOKUP(Control_Centre_Company_Builds,Table10,26,0),"")

Header Table name:Company ID
=IFERROR(VLOOKUP(Control_Centre_Company_Builds,Table10,4,0),"")

I have many more also.
I would prefer to match on header table names and the values in Table10[Control Centre Company Build] incase anything is moved around.

Any advice gratefully received.

Thank you in advance!
 
Last edited:

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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