That creates an Excel object but doesn't necessarily set a reference to Excel Code. (You would do this in the VBE Tools > References)
If you didn't do this xlToRight and xlDown mean nothing to PowerPoint (they are Excel constants) try this instead.
c = Range("D14").End(-4161).Column
r = Range("D14").End(-4121).Row
|