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

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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