PrevSelectedObjects not working?

Check this topic. Use backticks for code block, instead of preformatted text.