I have a small Access (Office 2007) application which uses Excel to display a "room chart" from data held in the Access tables. The Excel workbook and sheet are automatically opened and populated/updated as changes are made within the Access forms. When the Access form is closed the Excel sheet is automatically saved and closed by the Access module. This all seems to be working perfectly.
What I would now like to be able to do is to click on a cell in the already open Excel chart and automatically position the user on the equivalent record on the Access form (preferably by using the cell contents to "find" the correct record rather than changing the existing filter on the form?)
My main problem is that I cannot get my head around how I trap the click in the worksheet, pick up the current value of the clicked cell and bring it back into Access to use for the search. Can I trap a click in an open Excel sheet(and therefore determine the current cell value) from within the existing Access module that opens and updates the sheet? Or do I have to trap the click in Excel and somehow drive the form or pass the value from there?
I have tried loads of reference resources and help sites but just can't seem to find the info I need in a form that I can understand! Any pointers in the right direction would be much appreciated. Apologies if I am just being thick!
Many thanks
Andy
What I would now like to be able to do is to click on a cell in the already open Excel chart and automatically position the user on the equivalent record on the Access form (preferably by using the cell contents to "find" the correct record rather than changing the existing filter on the form?)
My main problem is that I cannot get my head around how I trap the click in the worksheet, pick up the current value of the clicked cell and bring it back into Access to use for the search. Can I trap a click in an open Excel sheet(and therefore determine the current cell value) from within the existing Access module that opens and updates the sheet? Or do I have to trap the click in Excel and somehow drive the form or pass the value from there?
I have tried loads of reference resources and help sites but just can't seem to find the info I need in a form that I can understand! Any pointers in the right direction would be much appreciated. Apologies if I am just being thick!
Many thanks
Andy