Is the workbook already open? Have you tried activating the workbook? The codeyou have sent only sets the variables - it doesn't do anything with them.