It's one of those self-explanatory errors: you need to Set object before using it:

Set uppxl = New Excel.Application