Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

excel 2013 delete method issue

$
0
0

Hi 

I am using excel sheet 2013 and this is my vba code 

     

 Sheets("Test").Select
        ActiveSheet.Unprotect Password:="abc"
        Cells.Select
        Selection.Delete Shift:=xlUp

I get an error 
"delete method of range class failed vba"

I also get an error 

"method add of list objects failed" 

but it works in excel sheet 2010 .

I am  assuming there is a different method for 2013.

Am i right if so what is the solution?

thanks in advance


   


nain1987


Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>