Opening a MasterData File Read Only and Lifting Data from that into a Table into a Current Workbook using VBA Code

Ibbo1978

New Member
Joined
Mar 6, 2017
Messages
20
Hi All,

  • I have a Master Data Table, this has a huge amount of info across 500 products
  • I also have a Daily workbook that may use 50 Products and only a number of the columns of data
  • I want to ensure that the data in my Daily workbook is exactly the same as Master Data Table.
  • So when I open Daily Workbook I want to open the Master Data table read only as many other files may do the same thing concurrently.
  • I then want to lift specific data from the Master Data table that satisfy the column headers within my daily workbook.

Master Data


PRODUCT CODECustomer CodeWork CentrePacks / HourPacks / CaseCases / HourEff'cy %Plan Rate
P CODECUSTW/CPPHPPCRATEEFFPRATE
CQ6762Ct11,6501213811
CT6762Ct12,4751220612
IC10008Ic22,2001022012
IC10009Ic22,2001022012
KD00051Al22,2001415712
KG10042Al11,5001212511
KD10042Al11,5001212511
KD10045Al11,5001212511
KD10065Al11,5001212511
KD10066Al11,5001212511
KD90014Al11,800630013
<colgroup><col width="140" style="width: 84pt; mso-width-source: userset; mso-width-alt: 4096;"> <col width="108" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3145;"> <col width="120" style="width: 72pt; mso-width-source: userset; mso-width-alt: 3510;"> <col width="71" style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;" span="2"> <col width="75" style="width: 45pt; mso-width-source: userset; mso-width-alt: 2194;"> <col width="75" style="width: 45pt; mso-width-source: userset; mso-width-alt: 2194;"> <col width="89" style="width: 53pt; mso-width-source: userset; mso-width-alt: 2596;"> <tbody> </tbody>

Daily Workbook


PRODUCT CODEPacks / HourPacks / Case
P CODEPPHPPC
KD10042
KD10045
KD10065
KD10066
<colgroup><col width="140" style="width: 84pt; mso-width-source: userset; mso-width-alt: 4096;"> <col width="71" style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;" span="2"> <tbody> </tbody>

Hope this explains my requirement, I just need to get started, I think if I had code to open the sheet read only and could fill in the first code efficiently, I presume it would be some sort of loop to continue the process.

Hope you can help Excel Family,

Ibbo
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,216,526
Messages
6,131,187
Members
449,631
Latest member
mehboobahmad

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