Hello everyone!,
Hope all are doing good.
I am trying to understand why structured reference between 2 tables does not work when the source table is moved few rows down?
The Plan is to have a "source table" in "dataSheet1" where users can enter the data.
"target table" in "dataSheet2" where couple of the column are same as "source table" and the data of these columns in "target table" are fetched from "source table"
here is the link to .xlsm file.
download
Apart from this, if you guys have any direction for me.
I need to compare the two tables. ''''''''''' This is working with the vba I have, with another major issue.
if "target table" has less rows than rows in "souce table" then
row is added to end of "target table" once "referesh" is hit.
if "target table" has more rows than rows in "source table" then
row is deleted from end of "target table" when "refresh" is hit
Issue with above approach..
if a row from between "souce table" is deleted the structured reference updates the "target table" shifting data a cell "up" and the data of "target table" (other rows) is now wrong data.
what i have in mind is to diable update in "datasheet2" and when row in "source table" is deleted, do a lookup on "target table" to delete entire row
which I am not sure how to achieve.
Thanks guys for your time.
Hope all are doing good.
I am trying to understand why structured reference between 2 tables does not work when the source table is moved few rows down?
The Plan is to have a "source table" in "dataSheet1" where users can enter the data.
"target table" in "dataSheet2" where couple of the column are same as "source table" and the data of these columns in "target table" are fetched from "source table"
VBA Code:
=tbl_source[column1]
download
Apart from this, if you guys have any direction for me.
I need to compare the two tables. ''''''''''' This is working with the vba I have, with another major issue.
if "target table" has less rows than rows in "souce table" then
row is added to end of "target table" once "referesh" is hit.
if "target table" has more rows than rows in "source table" then
row is deleted from end of "target table" when "refresh" is hit
Issue with above approach..
if a row from between "souce table" is deleted the structured reference updates the "target table" shifting data a cell "up" and the data of "target table" (other rows) is now wrong data.
what i have in mind is to diable update in "datasheet2" and when row in "source table" is deleted, do a lookup on "target table" to delete entire row
which I am not sure how to achieve.
Thanks guys for your time.