I use a workbook that processes real time stock prices with a VBA timer and sends out an alert when a price goes into a desired range. But this requires this workbook to be always the active workbook, and when I opened another workbook the alert failed. I tried adding something like ThisWorkbook.Sheet1 to all the Ranges in the code, but it didn't work.
Could anyone please tell me how i can make reference to the specific workbook that runs in the background, so that another opened workbook won't cause confusion? Thanks.
Could anyone please tell me how i can make reference to the specific workbook that runs in the background, so that another opened workbook won't cause confusion? Thanks.