Let me start from a comment: I don't understand why you thrown away a nice piece of work done by mehmetcik in previous thread https://www.excelforum.com/excel-pro...isplay-it.html
He has shown you, that there can be single procedure to do all major work (it was called MinMax there) and the code for each button can be just a call to this procedure with an argument (like worksheet row).
Now you went back to your code with all the work being done in each of the buttons code :-(
To the merit:
The simple solution, based on a registered macro consists of the procedure deleting a graph (if already exists) and re-creating it. The data to be displayed is passed in a named range.
As there were no sample graphs to be obtained, I assumed that this: "I need to display a line graph from 2 cell values" means you need only graph from the last range clicked. (see the code below)
If you need to have all ranges displayed the code shall be changed to only add a new series (and if only if needed - create a graph) - this approach is used in a workbook attached.
So in a standard module a code:
And the procedures in the "Program sheet code with added calls to this procedure, like:
Bookmarks