Hi all,
I'm building a report that is automated through VBA (by button clicks to call certain macros). One of the requirements is that specific region data be exportable into a new workbook (again, automated through VBA).
However, as a result of this requirement I am trying to work out the best way to retrieve any updates made to the exported workbooks (there will be 7 in total). The complication here is that I would not want for the updates to overwrite anything that doesn't match the region (stored in column B).
These edited exports will be added back in to the master file as sheets with set names (will not change ever).
My initial thinking was to add a conditional "IF" statement to only run the vlookup IF the contents of B4 (4 being the first line of data) are an exact match, else it should ignore the row and move to the next. However, I'm not sure if this is possible.
For information (and in the absence of having trial code to share):
Column A contains a unique ID to be looked up against
Column B contains the region name - so will allow for exact string matching
Columns C-V contain data that will remain unchanged
Column W-AQ contain the editable data and would be the cells requiring the results of any lookup
Let me know if there is any more info I can share to help get to the bottom of this.
Thanks
Ben
I'm building a report that is automated through VBA (by button clicks to call certain macros). One of the requirements is that specific region data be exportable into a new workbook (again, automated through VBA).
However, as a result of this requirement I am trying to work out the best way to retrieve any updates made to the exported workbooks (there will be 7 in total). The complication here is that I would not want for the updates to overwrite anything that doesn't match the region (stored in column B).
These edited exports will be added back in to the master file as sheets with set names (will not change ever).
My initial thinking was to add a conditional "IF" statement to only run the vlookup IF the contents of B4 (4 being the first line of data) are an exact match, else it should ignore the row and move to the next. However, I'm not sure if this is possible.
For information (and in the absence of having trial code to share):
Column A contains a unique ID to be looked up against
Column B contains the region name - so will allow for exact string matching
Columns C-V contain data that will remain unchanged
Column W-AQ contain the editable data and would be the cells requiring the results of any lookup
Let me know if there is any more info I can share to help get to the bottom of this.
Thanks
Ben