What happens if you put your PDF code at the end of the emptycell code to make it one macro?