ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Need Help (https://www.excelbanter.com/excel-programming/365978-need-help.html)

MBA2004[_2_]

Need Help
 

I have some macros that were working fine. Now, i'm getting a Compil
Error that says, "WRONG NUMBER OF ARGUMENTS OR INVALID PROPERT
ASSIGNMENT."

It is having a problem with the following code:

Columns("H:I").Select
Selection.Delete Shift:=xlToLeft

This works in my other spreadsheets, but not in this one.

Any thoughts? I don't understand what the Compile Error is.

Thanks,


--
MBA200
-----------------------------------------------------------------------
MBA2004's Profile: http://www.excelforum.com/member.php...fo&userid=3594
View this thread: http://www.excelforum.com/showthread.php?threadid=55740



All times are GMT +1. The time now is 06:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com