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

Melimob

Active Member
Joined
Oct 16, 2011
Messages
395
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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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