You habe indicated that the replies have resolved your pronlem - Please mark your thread as Solved

How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save


Re Wrapping VBA code

The easiest way to use code tags is to click on the # icon in the text formatting window

This will add
[ Code] [\ Code]
to your message window with the cursor between the ][ brackets - this is were your VBA code goes.
You will not see your code displayed correctly until you preview or post your message

Note:- there is no space before the word Code like I have shown in the example above

On posted correctly
your VBA code will
appear in its own 
scrollable window
within your message