Hello marvinabou7890,

Difficult to tell. Do you perhaps have any other Settings or code within your VBA project, which we are unaware of?

To me, at least, your issue appears as clear as mud, maybe because I am tired, and maybe you would like to attach a sample workbook, to better access your issue.

Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

Remember to desensitize the data.

Click on GO ADVANCED and use the paperclip icon to open the upload window.

View Pic


Hope to be of assistance then, after some shut eye.

Regards.