View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
MBA2004 MBA2004 is offline
external usenet poster
 
Posts: 1
Default Compile error in Excel


I have some macros that were working fine. Now, i'm getting a Compile
Error that says, "WRONG NUMBER OF ARGUMENTS OR INVALID PROPERTY
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,
M


--
MBA2004
------------------------------------------------------------------------
MBA2004's Profile: http://www.excelforum.com/member.php...o&userid=35946
View this thread: http://www.excelforum.com/showthread...hreadid=557353