• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Not able to delete columns ‘Delete method of Range class failed’

ThrottleWorks

Excel Ninja
Hi,

I am using ‘RawSht.Columns("AN:AO").Delete’ line to delete the columns.
Till yesterday it was working fine, from today, I am facing bug on the same line.
Can anyone please help me in this.
 
Hi,

I would say the problem is with RawSht.
If RawSht is the sheet code name, perhaps that was changed at some point?

Check the project explorer to make sure you have RawSht there:
1.JPG
 
Hi @PCosta87 , thanks a lot for the help. RawSht is present. Code is working with RawSt.range("A1").clear.

Have a nice day ahead. :)

Hi @Marc L sir, no merged cells. Object is present. Have a nice day ahead. :)
 
Back
Top