JimmyM1975
New Member
- Joined
- Feb 11, 2021
- Messages
- 7
- Office Version
- 2019
- Platform
- Windows
Hi. Can anyone help? We are looking for some excel based VBA that can run a FIND fuction (not FIND+REPLACE) across thousands of charts with millions of series in one go to find whatever is intered into the InputBox (eg #REF! to find broken links)?
I am not great at VBA but I have about 20 quite advanced 100MB+ excel workbooks that contain up to 100 sheets and over 20,000 charts. We run API automation to update data monthly into excel from various websites around the world, this updates all the charts and then we update the links in about 20 Powerpoints to get the latest iteration of the 1,200k charts contained therein. With 30-40 years of historic data, the files have millions of data points and cells which makes finding an error like looking for a needle in a haystak. It all works quite well until someone accidentally deletes a row / cell / column in error which causes #REF! within the series formulae of some chart, as has happned recently putting into massive disarray. Finding these charts is problematic and after days we still cannot find the source of the "excel found a problem with one or more formula references in this worksheet" warning. As FIND or FIND+REPLACE doesn't work within chart series, we have used some excellent Jon Pellteir VBA Change Series Formula - Improved Routines - Peltier Tech VBA as a workaround which runs and instant FIND + REPLACE within all charts in the sheet or book (he has a VBA for each option) and allows us to remove the #REF! but this doesn't help us fix the problem as it doesn't tell us where the physical location of the problem chart itself actually is (ie what sheet and what cell its sits on) - by the way all our charts are "embedded charts" in the worksheets themselves (and are not standalone "chart sheets").
Can anyone helps us with how to FIND (locate) the problem chart. We are trying to write some VBA (and failing) that would run across all charts in all sheets to run a FIND ONLY function (not FIND+REPLACE).. Ideally the VBA would bring up an InputBox (eg xFindStr = Application.InputBox("Find:"... ) and we could type XXX (eg #REF!, or something else) and then the VBA would take us to the FIRST chart that it finds with what we had entered into the InputBox (eg #REF!, or something else) and it would also SELECT that chart which would help us find the needle in the haystack). We could then manually ammend it. As we have many charts, it would be cool if the VBA could group select all that charts that contained what was entered in the InputBox (eg #REF!, or something else) and not just the first - but maybe that is asking too much.
I would very grateful if anyone can help.
I am not great at VBA but I have about 20 quite advanced 100MB+ excel workbooks that contain up to 100 sheets and over 20,000 charts. We run API automation to update data monthly into excel from various websites around the world, this updates all the charts and then we update the links in about 20 Powerpoints to get the latest iteration of the 1,200k charts contained therein. With 30-40 years of historic data, the files have millions of data points and cells which makes finding an error like looking for a needle in a haystak. It all works quite well until someone accidentally deletes a row / cell / column in error which causes #REF! within the series formulae of some chart, as has happned recently putting into massive disarray. Finding these charts is problematic and after days we still cannot find the source of the "excel found a problem with one or more formula references in this worksheet" warning. As FIND or FIND+REPLACE doesn't work within chart series, we have used some excellent Jon Pellteir VBA Change Series Formula - Improved Routines - Peltier Tech VBA as a workaround which runs and instant FIND + REPLACE within all charts in the sheet or book (he has a VBA for each option) and allows us to remove the #REF! but this doesn't help us fix the problem as it doesn't tell us where the physical location of the problem chart itself actually is (ie what sheet and what cell its sits on) - by the way all our charts are "embedded charts" in the worksheets themselves (and are not standalone "chart sheets").
Can anyone helps us with how to FIND (locate) the problem chart. We are trying to write some VBA (and failing) that would run across all charts in all sheets to run a FIND ONLY function (not FIND+REPLACE).. Ideally the VBA would bring up an InputBox (eg xFindStr = Application.InputBox("Find:"... ) and we could type XXX (eg #REF!, or something else) and then the VBA would take us to the FIRST chart that it finds with what we had entered into the InputBox (eg #REF!, or something else) and it would also SELECT that chart which would help us find the needle in the haystack). We could then manually ammend it. As we have many charts, it would be cool if the VBA could group select all that charts that contained what was entered in the InputBox (eg #REF!, or something else) and not just the first - but maybe that is asking too much.
I would very grateful if anyone can help.