Hi have 2 workbooks making up a staff roster. Workbook 1 contains all the shifts, employee, shift descriptions etc and pivot tables for reporting.
Workbook 2 has worksheets that use the data from a worksheet in Workbook1 to visually show the roster. Each worksheet displays 2 weeks of information i.e 1st feb to 14th feb. The ‘Key’ (to use a database term) getting the data from workbook 1 is made from day of the month, week 1 or 2 and cell reference, so would look like 71c4 for someone at 7thday, 1stweek position c4.
I wrote a VBA function [=fillCell1(CELL("address",INDIRECT(ADDRESS(ROW(),COLUMN()))))] for every cell that has someone rostered.
It
A: generates key from cell, date etc
B: uses key to find data in workbook1
C: Decides what to display using built in rules
D: Displays the result in the correct cell
Issues:
The biggie is when you display a 2 week period tab and then switch to another 2 week period tab it displays the same data as the other tab until you do a F9 refresh. Then all the sheets show the same data of the sheet that was just refreshed. A refresh takes about 1min on a dual core machine.. Have made multiple modules of the function renamed for each sheet but still the same.
Without diving into code is this a common problem?
Bookmarks