Hello AishaSanz,

Welcome to the Forum!

For best results, you should post your workbook. The code can then be fully tested and debugged. Please include before and after examples of the data along with any notes.
If your workbook contains sensitive information, please redact it before posting.

How To Post Your Workbook
  1. At the bottom right of the Reply window, Click the button Go Advanced
  2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
  3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
  4. Click the Select Files button at the bottom middle of the dialog.
  5. In the new window Find the file you want to upload, select it, and Click Open.
  6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
  7. Wait until the file has completely uploaded before you exit the File Manager dialog.