Assuming there is a numeric value in cell B6:

Set ppSlide = ppPres.Slides(Worksheets("VIVA GRAPH").Range("B6").Value)