I am trying to produce a macro that will match a ref number (in specific cell on the worksheetA) to another separate (workbook (Data) and specific sheet (main)).
when the match is found it will transfer data from specific cells on WorksheetA to corresponding cells in the other Workbook,Sheet(main).
Worksheet A is laid out as a form rather than linear and holds dets based on individual record only.
For example on WorksheetA the refernce number to base search on is in cell A6. Cell D6, E7, E10 have varied inputs from pull downs that the results need to be transferred to main sheet in new workbook. There are a few more than these 3 but I shoudl get the picture from any help with these three as I guess it just replicates
Then on Workbook, Sheet(main) it holds a list of all ref nos in Column A:A to base the search and match on.
When the ref no is matched in column A:A I need to activate the row on main sheet and trans over the above mentioned cells from WorksheetA to column F, J, L on the active row (Worksheet- Main).
Sorry bit garbled but hopefully will get picture. Huge thanks for help with this one
I cannot use VLOOKUP for this as the data in Worksheet A is not laid out in direct colums or row due to the nature of the form
when the match is found it will transfer data from specific cells on WorksheetA to corresponding cells in the other Workbook,Sheet(main).
Worksheet A is laid out as a form rather than linear and holds dets based on individual record only.
For example on WorksheetA the refernce number to base search on is in cell A6. Cell D6, E7, E10 have varied inputs from pull downs that the results need to be transferred to main sheet in new workbook. There are a few more than these 3 but I shoudl get the picture from any help with these three as I guess it just replicates
Then on Workbook, Sheet(main) it holds a list of all ref nos in Column A:A to base the search and match on.
When the ref no is matched in column A:A I need to activate the row on main sheet and trans over the above mentioned cells from WorksheetA to column F, J, L on the active row (Worksheet- Main).
Sorry bit garbled but hopefully will get picture. Huge thanks for help with this one
I cannot use VLOOKUP for this as the data in Worksheet A is not laid out in direct colums or row due to the nature of the form