You have quoted "==" instead of "=" Try again and it should meet your requirement.Hope you enjoy using Macro.