Please change the quote tags in your post to code tags.
Please post your attempt of merging the codes (use code tags) and the resulting complete (!) error message; when errors occur, the top of the output window has a button labeled copy error (or something like that).